com.ibm.di.security
Interface Crypto

All Known Implementing Classes:
RSACrypto, SymmetricCipherCrypto

public interface Crypto

Implementations of this interface encrypt/decrypt binary data.

Since:
7.0

Method Summary
 byte[] decrypt(byte[] encryptedData)
          Decrypt data.
 byte[] encrypt(byte[] data)
          Encrypt data.
 

Method Detail

encrypt

byte[] encrypt(byte[] data)
               throws java.lang.Exception
Encrypt 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.Exception
Decrypt data.

Parameters:
encryptedData - ciphertext
Returns:
plaintext
Throws:
java.lang.Exception - problem with decryption