Skip to main content

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
-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,...
Lonkin_p's user avatar
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 ...
user1172763's user avatar
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....
David Klempfner's user avatar
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 ...
InteXX's user avatar
  • 6,299
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 ...
Lilvinco's user avatar
  • 157
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 ...
Ajay's user avatar
  • 785
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 ...
Ergin's user avatar
  • 9,346
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 ...
smgtkn's user avatar
  • 111
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, ...
KJ7LNW's user avatar
  • 1,801
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 ...
Athena's user avatar
  • 111
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 ...
Edward Webb's user avatar
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: # ...
VictoireT's user avatar
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-...
JP.'s user avatar
  • 5,594
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 ...
Sudipta Roy's user avatar
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 ...
vitiral's user avatar
  • 8,920

15 30 50 per page
1
2 3 4 5
129