intarsys runtime library

de.intarsys.tools.crypto
Interface ICryptdec

All Known Implementing Classes:
Cryptdec, PBAES128Cryptdec, PBCryptdec

public interface ICryptdec

En/Decrypt data.


Method Summary
 byte[] decrypt(byte[] bytes)
          Decrypt a byte array.
 byte[] encrypt(byte[] bytes)
          Encrypt a byte array.
 String getId()
          A unique id for the ICryptdec
 

Method Detail

decrypt

byte[] decrypt(byte[] bytes)
               throws IOException
Decrypt a byte array.

Parameters:
bytes -
Returns:
The decrypted representation of bytes
Throws:
IOException

encrypt

byte[] encrypt(byte[] bytes)
               throws IOException
Encrypt a byte array.

Parameters:
bytes -
Returns:
The encrypted representation of bytes
Throws:
IOException

getId

String getId()
A unique id for the ICryptdec

Returns:
A unique id for the ICryptdec

intarsys runtime library

Copyright © 2012 intarsys consulting GmbH. All Rights Reserved.