Package anlavn.hash
Class AES
java.lang.Object
anlavn.hash.AES
The AES class supports encryption and decryption a String, using a security key.
AES using the Advanced Encryption Standard block cipher algorithm adopted by the US government as the encryption standard.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AES
public AES()
-
-
Method Details
-
encrypt
Use this method to encrypt a original string with security key. Can't be decryption by online tool.- Parameters:
strToEncrypt
- the string need encrypt.myKey
- is the security key.- Returns:
- a AES hash code of original string.
- See Also:
-
decrypt
Use this method to decrypt a AES hash code with security key. Only decryption by this method.- Parameters:
strToDecrypt
- is the AES hash code.myKey
- is the security key.- Returns:
- a original String.
- See Also:
-