Package com.ibm.di.security
Interface Crypto
-
- All Known Implementing Classes:
RSACrypto,SymmetricCipherCrypto
public interface CryptoImplementations of this interface encrypt/decrypt binary data.- Since:
- 7.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]decrypt(byte[] encryptedData)Decrypt data.byte[]encrypt(byte[] data)Encrypt data.
-
-
-
Method Detail
-
encrypt
byte[] encrypt(byte[] data) throws java.lang.ExceptionEncrypt data. There is no guarantee that on different invocations the method will produce the same ciphertext on the same plaintext.- Parameters:
data- plaintext- Returns:
- ciphertext
- Throws:
java.lang.Exception- problem with encryption
-
decrypt
byte[] decrypt(byte[] encryptedData) throws java.lang.ExceptionDecrypt data.- Parameters:
encryptedData- ciphertext- Returns:
- plaintext
- Throws:
java.lang.Exception- problem with decryption
-
-