e-CryptIt Engine REALbasic Plugin

CipherKeyType Module

Constants that define Cipher key types. This module can currently be used with the Serpent algorithm and the Twofish algorithm.

Example usage:
cipher = new Serpent(Password,CipherKeyType.Encrypt,CipherMode.ECB)

module CipherKeyType

Constants

Encrypt = 0A constant that defines a key for encrypting only.
Decrypt = 1A constant that defines a key for decrypting only.
Both = 2A constant that defines a key for both encrypting and decrypting. In most cases this constant should not be used since all the encryption algorithms can only make one use of each instance, so the only point in using the Both constant would be if you need to create a instance of a Cipher without knowing at that moment if the instance will be used for encrypting or decrypting.