TOlfCryptDecrypt Class

Simple class to crypt and decrypt buffers.

Unit: Olf.RTL.CryptDecrypt
System.TObject
  Olf.RTL.CryptDecrypt.TOlfCryptDecrypt
type TOlfCryptDecrypt = class(TObject)

The TOlfCryptDecrypt type exposes the following members.

Show:
 NameDescription
Create

Overloaded. Create an instance of TOlfCryptDecrypt class and fill its key buffer as integers

Create

Overloaded. Create an instance of TOlfCryptDecrypt class and fill its key buffer as bytes

Create

Overloaded. Create an instance of TOlfCryptDecrypt class

Top
Show:
 NameDescription
ByteKeys

buffer of bytes used as a key by Crypt/Decrypt functions

IntegerKeys

buffer of integers used as a key by Crypt/Decrypt functions

Top
Show:
 NameDescription
Crypt

Overloaded. Deprecated. DEPRECATED - internally use XORCrypt

Crypt

Overloaded. Deprecated. DEPRECATED - internally use XORCrypt

Decrypt

Overloaded. Deprecated. DEPRECATED - internally use XORDecrypt

Decrypt

Overloaded. Deprecated. DEPRECATED - internally use XORDecrypt

GenIDBKey

GenShiftKey

GenSwapKey

Export a key as an array of 256 random bytes

GenXORKey

Export a key as an array of random bytes

IDBCrypt

Overloaded.

IDBCrypt

Overloaded.

IDBDecrypt

Overloaded.

IDBDecrypt

Overloaded.

ShiftCrypt

Overloaded.

ShiftCrypt

Overloaded.

ShiftDecrypt

Overloaded.

ShiftDecrypt

Overloaded.

SwapCrypt

Overloaded. exchange bytes between a buffer to crypt and the key parameter

SwapCrypt

Overloaded. exchange bytes between a buffer to crypt and the property key

SwapDecrypt

Overloaded. exchange bytes between a buffer to uncrypt and the key parameter

SwapDecrypt

Overloaded. exchange bytes between a buffer to uncrypt and the property key

XORCrypt

Overloaded. use XOR operand to crypt a buffer with a keys buffer

XORCrypt

Overloaded. use XOR operand to crypt a buffer with the keys buffer property

XORDecrypt

Overloaded. use XOR operand to decrypt a buffer with a keys buffer

XORDecrypt

Overloaded. use XOR operand to decrypt a buffer with the keys buffer property

Top

This unit contains very simple cryptographic algorithms. DON't USE THEM FOR SENSIBLE DATAS !!! Check those projects if you need a more robust algorithm : - Delphi Encryption Compendium https://github.com/MHumm/DelphiEncryptionCompendium - TMS Cryptographic Pack https://www.tmssoftware.com/site/tmscrypto.asp