Posts about encryption
9 years ago
AES encryption in Ruby and Decryption in Java
This one is precious, as it took me a long time to figure out. As a side-note, Java apparently only supports 128bit AES.
Here's the Ruby code:
def encrypt(string, pwd) salt = OpenSSL::Random.random_bytes(16)
# prepare cipher for encryption...