Package anlavn.hash

Class AES

java.lang.Object
anlavn.hash.AES

public class AES extends Object
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 Details

    • AES

      public AES()
  • Method Details

    • encrypt

      public static final String encrypt(String strToEncrypt, String myKey)
      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

      public static final String decrypt(String strToDecrypt, String myKey)
      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: