How to decrypt the message using private key -RSA algorithm in java
问题 As I'm generating the encrypted string using .cer file but unable to do decryption. for decryption I have a file with .key extension and inside start with: -----BEGIN RSA PRIVATE KEY----- Algorithm: RSA/ECB/PKCS1Padding // encrypting session key using public key public static String encryptSessionKey_PublicKey(String data) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, CertificateException, FileNotFoundException {