[Solved] Digital signature between Java and Delphi

[ad_1] To get the same value from java.security.PublicKey.getEnconded() on Chilkat library you have to use CkPublicKey.GetDer() and pass false to the boolean parameter to make it use the PKCS8 format. [ad_2] solved Digital signature between Java and Delphi

[Solved] Making RSA keys in Java [closed]

[ad_1] The problem is in the 4th from bottom line of code: System.out.println((noSuchProvdr.getMessage()); ^ Remove the extra parenthesis from there to make it System.out.println(noSuchProvdr.getMessage()); Edit: If the compiler is telling you java.security.NoSuchProviderException is never thrown in body of corresponding try statement, remove this last catch block catch (NoSuchProviderException noSuchProvdr) { System.out.println((noSuchProvdr.getMessage()); } 3 [ad_2] solved … Read more

[Solved] convert java code with RSA to c#

[ad_1] X509EncodedKeySpec is the SubjectPublicKey part of a certificate. So you probably need to decode this structure. You could look at BouncyCastle for C# and check out Org.BouncyCastle.Asn1.X509.SubjectPublicKeyInfo.GetInstance(byte[]) 1 [ad_2] solved convert java code with RSA to c#

[Solved] Encrypt string using PCLCrypto

[ad_1] Follow the documentation for AES encryption and modify it for RSA. Use AsymmetricAlgorithm.RsaPkcs1 as algorithm provider. Below example is for AES. byte[] keyMaterial; byte[] data; var provider = WinRTCrypto.SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithm.AesCbcPkcs7); var key = provider.CreateSymmetricKey(keyMaterial); // The IV may be null, but supplying a random IV increases security. // The IV is not a secret like … Read more

[Solved] Bad Data exception during RSA decryption

[ad_1] Among other problems you are assuming that the ciphertext can be converted to UTF-8 meaningfully, and that isn’t guaranteed. If you want to encrypt text and transmit/store the encrypted contents as text you need to follow this pattern: Encrypt(textIn => textOut): Convert textIn to bytesIn via some encoding. UTF-8 is pretty good. Encrypt bytesIn … Read more