Questions tagged [encryption-asymmetric]

A type of encryption which uses one key to encrypt a message and another to decrypt the message.

In asymmetric encryption, also referred as public-key cryptography, there are two related keys--a key pair. A public key is made freely available to anyone who might want to send you a message. A second, private key is kept secret, so that only you know it.

594 questions
0
votes
1 answer

Hybrid cryptosystem implementation in .net. Error Specified key is not a valid size for this algorithm

I am trying to implement hybrid cryptosystem as mentioned in https://en.wikipedia.org/wiki/Hybrid_cryptosystem At the moment I have implemented following algorithm private void button1_Click(object sender, EventArgs e) { …
0
votes
1 answer

x509 certificate key to asymmetric algorithm

Re-doing this question since I don't know if I was getting my point across correctly. I have a signedXML object Dim signedXml As New SignedXml(envelope) I need to set the SigningKey property of this object signedXml.SigningKey I also have my…
0
votes
1 answer

Private key compromised, how to distribute new public keys? Client server model via asymmetric key encryption

I'm attempting to setup client/server communication for an application via libsodium. So far I plan to distribute the application with a hard-coded public key. The server will keep its secret key without ever sharing it. This should let users…
Cecil
  • 135
  • 7
0
votes
1 answer

PGP Encryption Fails on Large Files

I'm in this weird situation. I'm trying to encrypt this 11GB which has ~42 Million rows in it using PGP with RSA/Armored Public Key. Here are the commands I used: Import Key -> gpg --import ~/underwood/keys/my_pub_4096_RSA_key.asc PGP Encryption…
0
votes
1 answer

Max Length and Message Too Long error for Asymmetric Encryption in Unity

I use Asymmetric Encryption from Here and I was able to get things working perfectly as I turn my classes that hold data to Json data with JsonUtility.ToJson() and then I use the Encryption in the link above. I use to use the C# Serializer but ran…
JoeyL
  • 1,295
  • 7
  • 28
  • 50
0
votes
1 answer

Error "InvalidCipherTextException: data start wrong 64" with Bouncy Castle

I am encrypting and decrypting some Data using BouncyCastle, but when the lenght of the word is too long (i don´t know exactly the value), i got this error "InvalidCipherTextException: data start wrong 64" This is my Class of Encription: public…
MC Fer
  • 303
  • 1
  • 2
  • 15
0
votes
0 answers

Restrict communication to server only from the right client

I am pretty confused here trying to find a solution to this problem. There is a wifi enabled micro controller and a client (android app), both connected to the same wifi network. The official android app sends some instructions to the…
Ujjwal Syal
  • 377
  • 1
  • 3
  • 12
0
votes
1 answer

Public key encryption algorithm for short messages

I need to encrypt a high number of short messages (30-200b). The problem with usual algorithms, such as RSA, is that the size of the encrypted message tends to increase a lot, compared to symmetric encryption algorithms. Ideally, this cryptosystem…
0
votes
2 answers

PDF encryption/decryption not working

when i try to encrypt/decrypt a pdf file using bouncycastle this give me an empty pdf (with 184Ko size). the code works perfectly with text file. But no way with PDF file. any one have an idea how to encrypt/decrypt PDF file in Java ? bellow the…
0
votes
0 answers

Asymmetric on the fly encryption with Nginx

I want to encrypt a big static file on the server with Nginx when it's serving it. I want the encryption to be done with the public key sent in the request as a header and I want this endpoint to be accessible only to specific users (if someone…
Sassan
  • 2,187
  • 2
  • 24
  • 43
0
votes
0 answers

Asymmetric encryption with Pycripto

I want to do an encryption and a decryption scripts with Pycripto using public/private keys. I know asymmetric encryption is super expensive in use of resources, but I intend to encrypt and decrypt a text file with some passwords (let's say 200-300…
0
votes
1 answer

Browser encrypting Server decrypting

In the browser on the client I encrypt a rand_key variable using jsencrypt.js and a public key. The encrypted key is send via the body in a mail to the server. (This is the only way within my reach given the IT structure.) In my browser I…
ArtDijk
  • 1,957
  • 6
  • 23
  • 31
0
votes
0 answers

How or What is the best way to pass an encryption key?

Ok. so, encrypted data is sent from the computer to the server and spread to other computers. And, let say there is a person in the middle attack? Here is where I'm confuse; The client/server need to decrypt the data with the key, but if the key…
0
votes
1 answer

Using asymmetric encryption for license file

I want to send to a client an encrypted file that contains the license data for my application. As I will use asymmetric encryption, I will encrypt the file using a private key and send it to the client. The application on the client's pc will…
Doicare
  • 361
  • 1
  • 3
  • 15
0
votes
2 answers

Trying to get asymmetric RSA encryption to work

The following method does not work. decodedMessage ends up with garbage in it instead of the expected results. I'm following an example here that supposedly works. public static void POCSimple() { String secretMessage = "short message"; …
Dean Blakely
  • 3,535
  • 11
  • 51
  • 83