Skip to content

Instantly share code, notes, and snippets.

@tunix
Created July 21, 2014 14:38
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 tunix/8c5ae66caefbf55b0021 to your computer and use it in GitHub Desktop.
Save tunix/8c5ae66caefbf55b0021 to your computer and use it in GitHub Desktop.
AES aes = new AES(256/32);
String clave = "12345678677561";
clave = aes.parseKey(clave);
String texto = String.valueOf(0.0) + String.valueOf(677) + "Tr" + String.valueOf(0.0) +
String.valueOf(561);
String hash = aes.encrypt(texto, clave, 256);
System.out.println("Hash :" + hash);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment