Related
rddead I am writing a program that uses RSA to encrypt and decrypt text. The values of P, Q and E are provided by the user and it is checked whether they are prime numbers. The program finds N and D. Encryption and decryption failed. I've looked at some of the
wanghao qin My password is encrypted using RSA in android app. On the server side, I need to decrypt it. , what I have is a .pem file, and the php code for decryption: function privatekey_decodeing($crypttext, $fileName, $fromjs = FALSE)
{
$key_co
Sergio of Rus: I am trying to implement PKI. I want to encrypt large strings using RSA in Java without bouncy castle. The problem I get is that the data must not exceed 117 bytes. I try to find a solution that fails. I am new to this encryption. Please help me
dvl: I have successfully run RSA encryption/decryption in Java. This is how I generate the key. ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(path));
KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA");
kpg
Baltaza: So I'm trying to encrypt a file created when the user types, and after encryption I want to decrypt the file. Both the user created file and the encrypted file are fine, but when I open the encrypted file, I think it's blank because it has some gibber
Prajwal Rai I am using the RSA algorithm to encrypt and decrypt files whose size exceeds the size of the rsa key. In the code below for encryption, I am reading the file content in chunks and converting it to ciphertext. The block size is 32 bytes. FileInputSt
Sergio of Rus: I am trying to implement PKI. I want to encrypt large strings using RSA in Java without bouncy castle. The problem I get is that the data must not exceed 117 bytes. I try to find a solution that fails. I am new to this encryption. Please help me
dvl: I have successfully run RSA encryption/decryption in Java. This is how I generate the key. ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(path));
KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA");
kpg
Baltaza: So I'm trying to encrypt a file created when the user types, and after encryption I want to decrypt the file. Both the user created file and the encrypted file are fine, but when I open the encrypted file, I think it's blank because it has some gibber
Baltaza: So I'm trying to encrypt a file created when the user types, and after encryption I want to decrypt the file. Both the user created file and the encrypted file are fine, but when I open the encrypted file, I think it's blank because it has some gibber
Andy King I am trying to encrypt a short string with JavaScript and decrypt it with Java. Decryption fails, I think it's because the block mode and/or padding is different between the two platforms. I've tried encrypting the same string in Java and JavaScript,
Guy Needham I am trying to use RSA encryption in Java. I am generating a public key and using it to encrypt text. My problem is that when I enter the same text and the same key twice, the encryption results are different. This means that I cannot use encryptio
Sofian Mujer I'm developing an application that can encrypt and decrypt images (specific choices) using the RSA algorithm, everything works fine, but some pixels are behaving strangely, and I don't understand why! I use the same parameters to encrypt/decrypt a
Prajwal Rai I am using the RSA algorithm to encrypt and decrypt files whose size exceeds the size of the rsa key. In the code below for encryption, I am reading the file content in chunks and converting it to ciphertext. The block size is 32 bytes. FileInputSt
Sergio of Rus: I am trying to implement PKI. I want to encrypt large strings using RSA in Java without bouncy castle. The problem I get is that the data must not exceed 117 bytes. I try to find a solution that fails. I am new to this encryption. Please help me
dvl: I have successfully run RSA encryption/decryption in Java. This is how I generate the key. ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(path));
KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA");
kpg
Baltaza: So I'm trying to encrypt a file that is created when the user types, and after encryption I want to decrypt the file. Both the user created file and the encrypted file are fine, but when I open the encrypted file, I think it's blank because it has som
Baltaza: So I'm trying to encrypt a file that is created when the user types, and after encryption I want to decrypt the file. Both the user created file and the encrypted file are fine, but when I open the encrypted file, I think it's blank because it has som
Sofian Mujer I'm developing an application that can encrypt and decrypt images (specific choices) using the RSA algorithm, everything works fine, but some pixels are behaving strangely, and I don't understand why! I use the same parameters to encrypt/decrypt a
username I am trying to convert this code: /**
* Create a new PublicKey from encoded X.509 data
*/
public static PublicKey decodePublicKey(byte[] par0ArrayOfByte)
{
try
{
X509EncodedKeySpec var1 = new X509EncodedKeySpec(par0ArrayOfByte);
Jay It took me about a week to write the 2048 RSA Sign algorithm for my Java card. There are too many problems like sending and receiving a lot of bytes and so on. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Guy Needham I am trying to use RSA encryption in Java. I am generating a public key and using it to encrypt text. My problem is that when I enter the same text and the same key twice, the encryption results are different. This means that I cannot use encryptio
Bubloo 7: So I want to use RSA encryption to encrypt some information for me, but when done it sometimes fails to decode. Here is my code: import java.math.BigInteger;
public class rsa_practice {
public static void main(String[] args) {
BigIntege
motevalizadeh : I have the following information and want to generate a public and private key in RSA (Java). String pubKey = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJXFRUWMDJZ+moC/VbcAXoY5dDxOruwI2B+B+YZRHSRRTKPyd9v0HTqdLeVgufLu/cSxlZAKtZDp9mfgyNdbY9ECAwEAAQ=="
Will: I am trying to implement RSA-OAEP encryption using Java. I understand this requires labels, which are empty strings by default. How can I change the value of the label using the built-in class and provide the selected value? Maarten Bodewes: As I suggest
Matt Shaver: Currently, when I decrypt a Base64 encoded RSA encrypted string generated in C# using Java, I get the following error: javax.crypto.BadPaddingException: Not PKCS#1 block type 2 or zero padding The setup process for exchanging between .NET and Java
Edge software I have an encrypted private key and know the passphrase. I need to decrypt it using Java library. However, I'd rather not use BouncyCastle unless there is no other option. From previous experience, there are too many changes and not enough docume
node js The requirements are: Prime numbers p and q should be at least 1024 bits The difference between two prime numbers should be greater than 2^512(for safety) Q: What I want to know is that I specify the sum of the bit lengthspandqalsoSecureRandomgenerate
node js The requirements are: Prime numbers p and q should be at least 1024 bits The difference between two prime numbers should be greater than 2^512(for safety) Q: What I want to know is that I specify the sum of the bit lengthspandqalsoSecureRandomgenerate