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
-1
votes
1 answer

Encrypting the vector of 0 and 1s

I am about to create a vector of size n, with zero and ones. I want to encrypt all the elements of the vector, but I am wondering if encryption of the elements reveals information about the zero and ones. Is there any specific cryptosystem at which…
user3126804
  • 119
  • 3
  • 10
-1
votes
1 answer

How to import a bitcoin private key to BigInteger?

I use the following codes to try to import a bitcoin private key and compute the public key. The computed ECPublicKey is not equal to bitcoinPublicKey. How to correct? string bitcoinPrivateKeyStr =…
-1
votes
1 answer

File upload on ipfs with asymmetric encryption using metamask's public and private key

I want to upload a file after encrypting it with user's metamask public address and then user should be able to decrypt it with his metamask private key.How can I implement this functionality?
-1
votes
1 answer

Symmetric and Asymmetric Cryptography

I'm looking for an advice regarding cryptography. I'm working on a .Net application which I need to create a license for it, so I plan to create an encrypted license file which my application will use to know if it is licensed or not. Handling…
-1
votes
1 answer

golang encrypt cipher.Block / AES key itself

I'm using an AES key of type cipher.Block generated by using crypto/aes package with below func: aesBlock, err := aes.NewCipher(randKey) I'm using this to encrypt a particular set of data but afterward I want to encrypt aesBlock itself with a…
Devin
  • 1,011
  • 2
  • 14
  • 30
-1
votes
1 answer

How can be improved preformance of encryption / decryption for large files

I'm encrypting and decrypting files in my App, but if the file is too large it takes minutes, is it possible to improve speed? this is encryption/decryption code private static void startCrypting(int cipherMode, String key, File inputFile, …
-1
votes
1 answer

OpenSSL x509 utility PEM to DER conversion fails with "PEM_read_bio:no start line"

Trying to convert .pem file to .der file using below command. openssl x509 -in public_key.pem -out cert.der -outform DER getting below error unable to load certificate 31833:error:0906D06C:PEM routines:PEM_read_bio:no start…
dReAmEr
  • 6,986
  • 7
  • 36
  • 63
-1
votes
3 answers

Is it unsafe to fix the values of public and private keys on asymmetric RSA encryption?

I have a client-server structure, and to avoid sending the public key I was thinking about using a fixed key. What about this? I am padding and using a random SHA-256 when encrypting. So, with the public fixed, an attacker can't use brute force to…
Mcfer
  • 194
  • 1
  • 4
  • 15
-1
votes
1 answer

How to store and display asymmetrical encrypted customer data without keeping the private key

Here are the requirements: 1. Receive data and store it encrypted data with public key 2. Private key is not supplied and not stored 3. Return encrypted data through the APIs 4. Display decrypted data in the web client with the private key…
-1
votes
1 answer

I want to encrypt password at client side and decrypt password using asymmetric keys

I have to encrypt password form client side and decrypt it on server side. Then this decrypted password is passed through ldap. I get true or false in return as response. I cannot use MD5 as password cannot be retrieved form that. Is there any…
-1
votes
2 answers

incomplete RSA decryption with large XML file type - JAVA

I have a problem when decrypting XML type my file my returns incomplete data algorithm and rare symbols. public File decryptFile(File fileInput, X509Certificate certificate) throws BadPaddingException, Exception { try (DataInputStream…
rodrixd
  • 510
  • 2
  • 6
  • 15
-1
votes
3 answers

Is it possible to get the private key using the public key?

I am using RSA asymmetric encryption, encrypting the data using the public key and decrypting the data using the private key. The public key will be shared in clients machines. My question is if the user get the public key is there any way to get…
Yasser-Farag
  • 592
  • 4
  • 9
  • 28
-1
votes
1 answer

Encrypt String in java and decrypt it in winrt c#

How one would encrypt a string using symmetric/asymmetric decryption on WinRT Metro in C# and encrypt this in java, let's say in a webservice? I want to use RsaPkcs7 algorithm and I can see that CryptographicKey class and RSAParameters class are not…
-1
votes
2 answers

Encryption and Decryption

i want to implement following scenario Client Application will have function which will 1)get a image as parameter 2)convert it into byte of array 3)encrypt it call a web service and pass this byte of array to that service Service Will have a…
abrar
  • 69
  • 1
  • 2
  • 4
-1
votes
2 answers

Where RSA is used?

Someone please state two or three applications of RSA algorithm. I heard that RSA is used for SSL. Is that true?
Madusanka
  • 2,968
  • 5
  • 30
  • 41
1 2 3
39
40