Products » dgEncrypt User Guide

Object:  Key

The Key object represents a cryptographic key value, for use in a symmetric key ciphers such as the one implemented by dgEncrypt.

Properties

BinaryKey
The value of the key in raw binary.

HexKey
The value of the key encoded in hexidecimal notation

Base64Key
The value of the key encoded in base64 notation

KeyLength
The length of the key, in bytes. Read only.

Methods

GenerateKey
Assigns a randomly generated value to the key

Syntax: GenerateKey(Length)

ReadKeyFile
Reads a value from a specified file, and assigns it to the key

Syntax: ReadKeyFile(FileName)

WriteKeyFile
Writes the key value to a given file

Syntax: WriteKeyFile(FileName)

ReadKeyRegistry
Reads a value from a given location in the registry, and assigns it to the key

Syntax: ReadKeyRegistry(Hive, KeyName, ValueName)

WriteKeyRegistry
Writes the key value to a given location in the registry

Syntax: WriteKeyRegistry(Hive, KeyName, ValueName)