For encryption I use something like this:
SecretKey aesKey = KeyGenerator.getInstance(\"AES\").generateKey();
StringEncrypter aesEncrypt = new StringEncrypte
Just for reference, the output you're seeing is the result of the default toString
method and the funny number on the end is a hash code. See here. Hash codes are by design not reversible, and toString
is not necessarily guaranteed to give you enough information to reconstruct the original object (although it does for certain classes).