com.ibm.dse.applsrv.aa
Interface EncryptionInterface

All Known Implementing Classes:
Scrambler

public interface EncryptionInterface

This interface defines the API requirements for encryption.


Method Summary
 java.lang.String decrypt(java.lang.String text, java.lang.String password)
          Return the text decrypted by the password.
 java.lang.String encrypt(java.lang.String text, java.lang.String password)
          Return a string representing the text encrypted by the password.
 

Method Detail

decrypt

public java.lang.String decrypt(java.lang.String text,
                                java.lang.String password)
Return the text decrypted by the password.
Parameters:
text - String - the encrypted string.
password - String - the password.
Returns:
String - the decrypted string.

encrypt

public java.lang.String encrypt(java.lang.String text,
                                java.lang.String password)
Return a string representing the text encrypted by the password.
Parameters:
text - String - the string to encrypted.
password - String - the password.
Returns:
String - the scrambled string.