Exception when decrypting a “der” file generated with OpenSSL: Input length must be multiple of 8 when decrypting with padded cipher

后端 未结 1 1257
夕颜
夕颜 2021-01-27 09:28

first I generate a private RSA keyfile with OpenSSL and then convert it into an encrypted \"der\" file:

$ openssl pkcs8 -topk8 -inform PEM -outform DER -in priva         


        
相关标签:
1条回答
  • 2021-01-27 10:04

    The solution is:

    return pbeCipher.doFinal(encryptedKey.getEncryptedData());
    
    0 讨论(0)
提交回复
热议问题