Skip to content

Instantly share code, notes, and snippets.

@tarcisio-marinho
Created December 13, 2017 17:45
Show Gist options
  • Save tarcisio-marinho/29e06ab72bfc3138c491b0cec912b662 to your computer and use it in GitHub Desktop.
Save tarcisio-marinho/29e06ab72bfc3138c491b0cec912b662 to your computer and use it in GitHub Desktop.
magic happens
iv = generate_key(16);
key = generate_key(32);
/* Where encryption really happens*/
encrypt(old, new, key, iv);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment