Products » dgEncrypt User Guide

Object:  Cipher

The Cipher object uses an implementation of the Rijndael block cipher to conduct encryption and decryption operations.

Methods

SetKey
Sets a key value to be used in subsequent encryption and decryption operations

Syntax: SetKey(Key)

EncryptStringBinary
Encrypts a string, and returns the resulting cipher text as a raw binary value

Syntax: EncryptStringBinary(PlainText)

DecryptStringBinary
Decrypts a raw binary cipher text, returning the original plain text

Syntax: DecryptStringBinary(CipherText)

EncryptStringHex
Encrypts a string, and returns the resulting cipher text as a hexidecimal value

Syntax: EncryptStringHex(PlainText)

DecryptStringHex
Decrypts a hexidecimal-encoded cipher text, returning the original plain text

Syntax: DecryptStringHex(CipherText)

EncryptStringBase64
Encrypts a string, and returns the resulting cipher text as a base64 value

Syntax: EncryptStringBase64(PlainText)

DecryptStringBase64
Decrypts a base64-encoded cipher text, returning the original plain text

Syntax: DecryptStringBase64(CipherText)

EncryptFile
Encrypts a file, and writes the resulting cipher text to the indicated location

Syntax: EncryptFile(PlainText, CipherText)

DecryptFile
Decrypts a file, and writes the resulting plain text to the indicated location

Syntax: DecryptFile(CipherText, PlainText)