Back to product page

InitVector property


Holds the initialization vector for chain-mode encryption.

Type

A Variant value. Holds the initialization vector as String expression or as Blob interface.

Syntax

  • Basic
object.InitVector [= value]
The InitVector(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodCrypt.
valueA Variant value.

Remarks

InitVector is used when Mode is set to CBC, CFB or OFB. In these modes, during encryption each block of data is XOR-ed with the value of InitVector at some stage. InitVector data is internally changed on each iteration so different blocks of data produce different ciphertext blocks.

The same InitVector value must be used when you try to Decrypt the data!