Skip to content

Instantly share code, notes, and snippets.

@kv109
Last active December 27, 2016 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kv109/5f6597fbc1498bb66799e9f782db27f4 to your computer and use it in GitHub Desktop.
Save kv109/5f6597fbc1498bb66799e9f782db27f4 to your computer and use it in GitHub Desktop.
aes4
encrypted = AES.encrypt("Super secret message", "password")
decrypted = AES.decrypt(encrypted, "ggssword") # "pa" => "gg"
decrypted #=> Super secret message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment