e-CryptIt Engine Xojo Plugin |

# Serpent.Constructor Constructor (console safe)

A constructor that does take IV vector for chaining mode.

Constructor(
key as String,
keyType as Integer,
mode as Integer,
iv as String)

#### Parameters

key
  The encryption key to encrypt with.
  Password >= 256 bits will give 256 bit key.
  Note:
  Normally a 256 bit password is ensured by running the password first through 256 bit hashing algorithm.
keyType
  Specifies if encrypting or decrypting. (See CipherKeyType constants)
mode
  Specifies cipher mode (ECB or CBC). (See CipherMode constants)
iv
  The iv may be initialized with anything, but the recipient needs to know what it was initialized with, or it won't be able to decrypt. Some programs and protocols simplify this, like SSH, where iv is simply initialized to zero. If this parameter is skipped then the iv will be "0000000000000000". The IV should always be a 16 character value.

#### Remarks

#### See Also

Serpent Class