OpenSSL Encryption of Session Key
问题 I am writing a method that encrypts session keys. It needs to do this such that the key can be decrypted by a different program that has been tested successfully. The decryption program cannot change. Where I am stuck is on getting my encryption to work in a way that it aligns with the decryption routine. Let me give the decryption routine first. Remember, this cannot change: public Boolean decryptSessionKey() { // first, base64 decode the session key String sslString = "openssl base64 -d -in