Class TOlfCryptDecrypt
Unit
Declaration
type TOlfCryptDecrypt = class(TObject)
Description
Simple class to crypt and decrypt buffers.
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
Hierarchy
- TObject
- TOlfCryptDecrypt
Overview
Methods
![]() |
function XORCrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function XORCrypt(Const AStream: TStream; Const AKeys: TByteDynArray) : TMemoryStream; overload; |
![]() |
function XORDecrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function XORDecrypt(Const AStream: TStream; Const AKeys: TByteDynArray): TMemoryStream; overload; |
![]() |
class function GenXORKey(Const Size: word): TByteDynArray; |
![]() |
function SwapCrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function SwapCrypt(Const AStream: TStream; Const AKeys: TByteDynArray) : TMemoryStream; overload; |
![]() |
function SwapDecrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function SwapDecrypt(Const AStream: TStream; Const AKeys: TByteDynArray): TMemoryStream; overload; |
![]() |
class function GenSwapKey: TByteDynArray; |
![]() |
function ShiftCrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function ShiftCrypt(Const AStream: TStream; const AKeys: TIntegerDynArray): TMemoryStream; overload; |
![]() |
function ShiftDecrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function ShiftDecrypt(Const AStream: TStream; const AKeys: TIntegerDynArray): TMemoryStream; overload; |
![]() |
class function GenShiftKey(Const Size: word): TIntegerDynArray; |
![]() |
function IDBCrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function IDBCrypt(Const AStream: TStream; const AKeys: TIntegerDynArray): TMemoryStream; overload; |
![]() |
function IDBDecrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function IDBDecrypt(Const AStream: TStream; const AKeys: TIntegerDynArray): TMemoryStream; overload; |
![]() |
class function GenIDBKey(Const Size: word): TIntegerDynArray; |
![]() |
constructor Create; overload; |
![]() |
constructor Create(Const AKeys: TByteDynArray); overload; |
![]() |
constructor Create(Const AKeys: TIntegerDynArray); overload; |
![]() |
function Crypt(Const AStream: TStream): TStream; overload; deprecated 'Use XORCrypt()'; |
![]() |
class function Crypt(Const AStream: TStream; Const AKeys: TByteDynArray) : TStream; overload; deprecated 'Use XORCrypt()'; |
![]() |
function Decrypt(Const AStream: TStream): TStream; overload; deprecated 'Use XORDecrypt()'; |
![]() |
class function Decrypt(Const AStream: TStream; Const AKeys: TByteDynArray) : TStream; overload; deprecated 'Use XORDecrypt()'; |
Properties
![]() |
property ByteKeys: TByteDynArray read FByteKeys write SetByteKeys; |
![]() |
property IntegerKeys: TIntegerDynArray read FIntegerKeys
write SetIntegerKeys; |
Description
Methods
![]() |
function XORCrypt(Const AStream: TStream): TMemoryStream; overload; |
use XOR operand to crypt a buffer with the keys buffer property
You can use the program at https://xorkeysgenerator.olfsoftware.fr/ to generate a compatible XOR keys buffer. |
![]() |
class function XORCrypt(Const AStream: TStream; Const AKeys: TByteDynArray) : TMemoryStream; overload; |
use XOR operand to crypt a buffer with a keys buffer
You can use the program at https://xorkeysgenerator.olfsoftware.fr/ to generate a compatible XOR keys buffer. |
![]() |
function XORDecrypt(Const AStream: TStream): TMemoryStream; overload; |
use XOR operand to decrypt a buffer with the keys buffer property
You can use the program at https://xorkeysgenerator.olfsoftware.fr/ to generate a compatible XOR keys buffer. |
![]() |
class function XORDecrypt(Const AStream: TStream; Const AKeys: TByteDynArray): TMemoryStream; overload; |
use XOR operand to decrypt a buffer with a keys buffer
You can use the program at https://xorkeysgenerator.olfsoftware.fr/ to generate a compatible XOR keys buffer. |
![]() |
class function GenXORKey(Const Size: word): TByteDynArray; |
Export a key as an array of random bytes |
![]() |
function SwapCrypt(Const AStream: TStream): TMemoryStream; overload; |
exchange bytes between a buffer to crypt and the property key
You can use the program at https://swapkeysgenerator.olfsoftware.fr/ to generate a compatible Swap keys buffer. |
![]() |
class function SwapCrypt(Const AStream: TStream; Const AKeys: TByteDynArray) : TMemoryStream; overload; |
exchange bytes between a buffer to crypt and the key parameter
You can use the program at https://swapkeysgenerator.olfsoftware.fr/ to generate a compatible Swap keys buffer. |
![]() |
function SwapDecrypt(Const AStream: TStream): TMemoryStream; overload; |
exchange bytes between a buffer to uncrypt and the property key
You can use the program at https://swapkeysgenerator.olfsoftware.fr/ to generate a compatible Swap keys buffer. |
![]() |
class function SwapDecrypt(Const AStream: TStream; Const AKeys: TByteDynArray): TMemoryStream; overload; |
exchange bytes between a buffer to uncrypt and the key parameter
You can use the program at https://swapkeysgenerator.olfsoftware.fr/ to generate a compatible Swap keys buffer. |
![]() |
class function GenSwapKey: TByteDynArray; |
Export a key as an array of 256 random bytes |
![]() |
function ShiftCrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function ShiftCrypt(Const AStream: TStream; const AKeys: TIntegerDynArray): TMemoryStream; overload; |
![]() |
function ShiftDecrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function ShiftDecrypt(Const AStream: TStream; const AKeys: TIntegerDynArray): TMemoryStream; overload; |
![]() |
class function GenShiftKey(Const Size: word): TIntegerDynArray; |
![]() |
function IDBCrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function IDBCrypt(Const AStream: TStream; const AKeys: TIntegerDynArray): TMemoryStream; overload; |
![]() |
function IDBDecrypt(Const AStream: TStream): TMemoryStream; overload; |
![]() |
class function IDBDecrypt(Const AStream: TStream; const AKeys: TIntegerDynArray): TMemoryStream; overload; |
![]() |
class function GenIDBKey(Const Size: word): TIntegerDynArray; |
![]() |
constructor Create; overload; |
Create an instance of TOlfCryptDecrypt class |
![]() |
constructor Create(Const AKeys: TByteDynArray); overload; |
Create an instance of TOlfCryptDecrypt class and fill its key buffer as bytes |
![]() |
constructor Create(Const AKeys: TIntegerDynArray); overload; |
Create an instance of TOlfCryptDecrypt class and fill its key buffer as integers |
![]() |
function Crypt(Const AStream: TStream): TStream; overload; deprecated 'Use XORCrypt()'; |
Warning: this symbol is deprecated: Use XORCrypt() DEPRECATED - internally use XORCrypt |
![]() |
function Decrypt(Const AStream: TStream): TStream; overload; deprecated 'Use XORDecrypt()'; |
Warning: this symbol is deprecated: Use XORDecrypt() DEPRECATED - internally use XORDecrypt |
Properties
![]() |
property ByteKeys: TByteDynArray read FByteKeys write SetByteKeys; |
buffer of bytes used as a key by Crypt/Decrypt functions |
![]() |
property IntegerKeys: TIntegerDynArray read FIntegerKeys
write SetIntegerKeys; |
buffer of integers used as a key by Crypt/Decrypt functions |
Generated by PasDoc 0.16.0.