Interface IEncryptionHelper
-
public interface IEncryptionHelper
Defines the interface of encryption helper, which includes two methods for encryption and decryption.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
decrypt(java.lang.String string)
Decrypts the given encrypted string, and returns the original string.java.lang.String
encrypt(java.lang.String string)
Encrypts the given string, and returns the encrypted string.
-
-
-
Method Detail
-
encrypt
java.lang.String encrypt(java.lang.String string)
Encrypts the given string, and returns the encrypted string.- Parameters:
string
- the string to encrypt- Returns:
- the encrypted string
-
decrypt
java.lang.String decrypt(java.lang.String string)
Decrypts the given encrypted string, and returns the original string.- Parameters:
string
- the string to decrypt- Returns:
- the original string
-
-