Skip to content

Instantly share code, notes, and snippets.

@flschweiger
Last active October 28, 2016 21:37
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 flschweiger/b518914314ee89944b99bd02c190ec40 to your computer and use it in GitHub Desktop.
Save flschweiger/b518914314ee89944b99bd02c190ec40 to your computer and use it in GitHub Desktop.
Decrypt a super secret message.
// Init the Cipher and decrypt the ciphertext
cipher.init(Cipher.DECRYPT_MODE, secretKey, new IvParameterSpec(iv));
byte[] decryptedBytes =
cipher.doFinal(encryptedBytes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment