public-key-encryption Questions

10

Solved

I'm making a program in Python to be distributed to windows users via an installer. The program needs to be able to download a file every day encrypted with the user's public key and then decrypt ...
Poker asked 19/6, 2009 at 22:28

3

Solved

I am trying to create X509Certificate2 from string. Let me show an example: string keyBase64String = Convert.ToBase64String(file.PKCS7); var cert = new X509Certificate2(Convert.FromBase64String(ke...
Surroundings asked 18/5, 2017 at 16:36

10

I am trying to get a better grapple on how public/private keys work. I understand that a sender may add a digital signature to a document using his/her private key to essentially obtain a hash of t...

5

Solved

I am wondering if there exists some asymmetric encryption algorithm that would work with two different private keys, so that the encrypted message can be decrypted by either one of such private key...

4

Solved

Problem When I receive a JWK from Azure AD in Python, I would like to validate and decode it. I, however, keep getting the error "Signature verification failed". My Setup I have the follo...

3

Solved

How to create a JWKS public/private key pair, similar to the one that can be created manually at https://mkjwk.org/, that includes the Key ID (kid) and Key Use (use)? I used the cryptography module...
Outport asked 18/5, 2021 at 15:35

4

Solved

In a nutshell, this is my problem: private string publicKeyString = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVGUzbydMZS+fnkGTsUkDKEyFOGwghR234d5GjPnMIC0RFtXtw2tdcNM8I9Qk+h6fnPHiA7r27iHBfdxTP3oegQJW...
Lorylose asked 14/2, 2012 at 20:28

3

The suggestion to encrypt log files as a means of protecting the personal data that might be contained in them is widespread. What I've not seen is a good reference implementation, which is surpri...
Dyal asked 15/3, 2018 at 14:41

4

Solved

I am trying to upload a public key on AWS CloudFront. I generate the key as follows ssh-keygen -t ecdsa -b 521 I have also tried ssh-keygen -b 4096 When I upload it through the console, I get ...
Moderate asked 21/11, 2019 at 2:15

2

Solved

I'm trying to use interesting password management tool named Pass. I did the following: Installed gpg tool $ sudo dnf install gpg Generated a key using $ gpg --gen-key Typed $ pass init "foob...
Apotheosize asked 27/10, 2015 at 6:16

4

Solved

I am trying to calculate the cube root of a many-hundred digit number modulo P in Python, and failing miserably. I found code for the Tonelli-Shanks algorithm which supposedly is simple to modify ...
Precedence asked 19/7, 2011 at 18:42

13

Solved

I am having issues setting up OpenSSH for Windows, using public key authentication. I have this working on my local desktop and can ssh with a key from Unix machines or other OpenSSH for Windows ma...
Lactam asked 25/4, 2013 at 10:51

3

Solved

I cannot for the life of me figure out why my SSH config is forwarding the wrong key. I have two keys, we'll call them home_rsa and work_rsa. I have done the following: eval `ssh-agent` ssh-add -K...
Oedema asked 1/4, 2016 at 18:24

3

Solved

I want to encrypt data using public/private key technique. I mean, encrypt with the public key of receiver and the receiver can decrypt with their own private key. How can I do that? Do you have ...

2

Solved

I am generating a KeyPair for ECC from curve 'secp128r1' using openssl Steps I followed : first I generated a private key using the command openssl ecparam -genkey -name secp128r1 -noout -ou...

4

When decrypting I get following error: $ eyaml decrypt -s 'ENC and the key goes on here' .gnupg --quiet --no-secmem-warning --no-permission-warning --no-tty --yes --decrypt) failed with: gpg: S...
Whisper asked 29/7, 2016 at 12:43

12

Solved

I have a gpg .key file that is used as passphrase for decrypting a .dat.pgp file. The encrypted .data.pgp file gets successfully decrypted on one server with same .key file using following command ...
Antivenin asked 4/2, 2015 at 12:42

2

I have a system that requires a RSA keypair to be generated in javascript, have the public key then stored in a database at the server side (as a string), then the server side which is in Java will...
Sharmainesharman asked 17/1, 2016 at 5:54

1

I am trying to store my app data on Google Drive and iCloud based on user device.I don't want to use Async Storage ,redux state neither I want to store data on my server cloud i.e. AWS. Basically I...

15

While using OpenSSL on Windows: openssl genrsa -out privatekey.pem 1024 --> Created successfully openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 365 ----> Showing er...
Ungracious asked 22/1, 2013 at 12:56

6

Solved

Is there an easy way to make Git always signs each commit or tag that is created? I tried it with something like: alias commit = commit -S But that didn't do the trick. I don't want to install ...
Kabul asked 15/4, 2012 at 10:26

2

i want to encrypt a password with a key from server and decrypt the encrypted password in serverside. this is the code i have used in my application /* * To change this license header, choose Lic...
Box asked 10/8, 2015 at 9:7

2

Solved

I have the modulus & exponent of an RSA public key embedded into a binary file, and I am trying to extract the entire blob and create a usable .pem public key. Currently, I am extracting the f...
Ng asked 19/12, 2014 at 14:58

1

I am trying to address a use case exactly same as How to encrypt data using RSA, with SHA-256 as hash function and MGF1 as mask generating function?, but I need a few more clarity on this. The abo...
Shurlock asked 21/2, 2017 at 13:55

3

Solved

I am working on a use-case where OpenPGP is being used to generate a public key pair on a smart card (Yubikey). The smart card is then to be shipped off to the user. Trying to emulate this locally...
Hydrolyze asked 11/10, 2017 at 13:46

© 2022 - 2025 — McMap. All rights reserved.