Skip to content

Instantly share code, notes, and snippets.

@RichardHJensen
Created September 22, 2011 13:53
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 RichardHJensen/1234818 to your computer and use it in GitHub Desktop.
Save RichardHJensen/1234818 to your computer and use it in GitHub Desktop.
The second test
@Test
public void encryptingTheSameStringShouldGiveTheSameCiphertext() throws Exception {
String cipherText1 = aesExample.encrypt(SAMPLE_TEXT);
String cipherText2 = new AESEncryptor().encrypt(SAMPLE_TEXT);
assertEquals(cipherText1, cipherText2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment