Questions tagged [public-key-encryption]
An cryptographic scheme which uses two mathematically related keys; a public and a private key where a message encrypted with public key can only be decrypted with the private key and vice-versa.
public-key-encryption
1,926
questions
-2
votes
1
answer
82
views
Encrypt my own message and its giving a different message [closed]
So I'm trying to encrypt my own message but its coming out in symbols instead of letters.
Here is my code below
while b != 0:
a, b = b, a % b
return a
s0, s1 = 1, 0
t0, t1 = 0,...
0
votes
0
answers
21
views
Using GPG to get certificate expiration data
I am trying to get cert expiration data from a .PGP file, so I ran this command:
$ gpg --list-packets ./mycert.pgp
This is the resultant output, with the parts I perceive as relevant highlighted ...
0
votes
0
answers
21
views
How does ASP.NET verify a JWT?
We are using JWT bearer authentication:
var cognitoIssuer = "https://cognito-idp.someRegion.amazonaws.com/someUserPoolId";
services
.AddAuthentication(JwtBearerDefaults....
1
vote
1
answer
66
views
My exportable private key isn't exportable
Note: the answer can come in either VB.NET or C#. I have no preference for this Q&A.
I'm using the Certes and Bouncy Castle-based code below to finalize, generate and import a Let's Encrypt TLS ...
1
vote
1
answer
162
views
How to create EVP_PKEY from public key string in C
I am trying to perform string data encryption in C using OpenSSL with a public key shared with me. I have searched online but I haven't had much success finding helpful information.
My encryption ...
0
votes
1
answer
249
views
Encrypt Decrypt file using GNUPG
I created PGP keys using this key generator website (Algo - RSA, Key Size - 4096 bits). I am using Databricks to write its encrypt and decrypt function and store public and private keys generated ...
0
votes
1
answer
161
views
Webauthn - How to validate/verify returned registration auth data using React + Node.js
Trying to implement a basic webauthn flow in a React/Node app by following the official Webauthn guide. My call to navigator.credentials.create() is working and I'm successfully generating a ...
0
votes
2
answers
68
views
Accidentally changed the permissons of .ssh and now cannot access ec2 instance
I accidentally changed the permissions of .ssh directory and everything inside of it to 777 in my ec2 instance as ec2-user (root) and logged out of the instance. Now I cannot ssh into my instance ...
1
vote
1
answer
47
views
How do I port python2 code using RSA.importKey().decrypt() to python3?
We have a legacy python2 application that uses an RSA private key to decrypt a base64-encoded file. How do we port this to python3?
Python2.7 code, this does work:
def _unlock_keys(self, ...
0
votes
0
answers
69
views
Evaluating a matrix-vector product with the CKKS scheme
For a simple project, I want to use the CKKS encryption scheme via the PYfhel library. I need to evaluate a matrix-vector product, e.g. Y = A*X.
Question: How to do it properly with PyFhel ?
Partial ...
0
votes
0
answers
109
views
X509 Private Key Convert to pkcs1 possible?
Is it possible to convert a public/private key I created in PHP (x509 format I believe but not 100% sure) to a pkcs1 version (python) ? I have two apps one PHP and one in Python, and I would like ...
1
vote
1
answer
228
views
How to check whether age public key and private key couple with each other
Age is a practical toos for file encryption, here it is its presentation page: age.
With age-keygen, we are going to be able to create a couple of public key and private key together like below:
# ...
0
votes
1
answer
72
views
Consistent derivation of private key from PassKey?
Can I consistently derive a private key that isn’t the PassKey from a PassKey?
Eg. so that I could use that derived key in-application across multiple different devices without having to use a both-...
0
votes
1
answer
64
views
openssl encrpyt java decrypt
Hello I am using openssl to encrypt a string and JAVA code to decrypt it. My key is "SUDIPTA123". The command I am using to encrypt
encdata=$(echo -n "12345627678" | openssl enc -v ...
0
votes
1
answer
46
views
browser extension for stored private/public key
I'm thinking of making a passwordless and Ulta simple web server.
The basic idea is that to make changes (post, add pull requests, etc) you first email (or otherwise communicate) your public key to ...