Class TRALCripto

Unit

Declaration

type TRALCripto = class(TObject)

Description

Base class for all crypto functions

Hierarchy

Overview

Methods

Public constructor Create;
Public function Decrypt(const AValue: StringRAL; ABinary : boolean = false): StringRAL; overload;
Public function Decrypt(AValue: TBytes): StringRAL; overload;
Public function Decrypt(AValue: TStream): StringRAL; overload;
Public function DecryptAsBytes(AValue: TStream): TBytes; overload;
Public function DecryptAsBytes(AValue: TBytes): TBytes; overload;
Public function DecryptAsBytes(const AValue: StringRAL): TBytes; overload;
Public function DecryptAsStream(AValue: TStream): TStream; virtual; abstract;
Public function Encrypt(const AValue: StringRAL; ABinary : boolean = false): StringRAL; overload;
Public function Encrypt(AValue: TStream): StringRAL; overload;
Public function Encrypt(AValue: TBytes): StringRAL; overload;
Public function EncryptAsBytes(const AValue: StringRAL): TBytes; overload;
Public function EncryptAsBytes(AValue: TBytes): TBytes; overload;
Public function EncryptAsBytes(AValue: TStream): TBytes; overload;
Public function EncryptAsStream(AValue: TStream): TStream; virtual; abstract;
Protected function BeforeDecrypt(AValue: TStream): TStream;
Protected function BeforeEncrypt(AValue: TStream): TStream;
Protected function CanCript: boolean; virtual;
Protected procedure SetKey(const AValue: StringRAL); virtual;

Properties

Published property IntputType: TRALCriptoInOutType read FIntputType write FIntputType;
Published property Key: StringRAL read FKey write SetKey;
Published property OutputType: TRALCriptoInOutType read FOutputType write FOutputType;

Description

Methods

Public constructor Create;
 
Public function Decrypt(const AValue: StringRAL; ABinary : boolean = false): StringRAL; overload;
 
Public function Decrypt(AValue: TBytes): StringRAL; overload;
 
Public function Decrypt(AValue: TStream): StringRAL; overload;
 
Public function DecryptAsBytes(AValue: TStream): TBytes; overload;
 
Public function DecryptAsBytes(AValue: TBytes): TBytes; overload;
 
Public function DecryptAsBytes(const AValue: StringRAL): TBytes; overload;
 
Public function DecryptAsStream(AValue: TStream): TStream; virtual; abstract;
 
Public function Encrypt(const AValue: StringRAL; ABinary : boolean = false): StringRAL; overload;
 
Public function Encrypt(AValue: TStream): StringRAL; overload;
 
Public function Encrypt(AValue: TBytes): StringRAL; overload;
 
Public function EncryptAsBytes(const AValue: StringRAL): TBytes; overload;
 
Public function EncryptAsBytes(AValue: TBytes): TBytes; overload;
 
Public function EncryptAsBytes(AValue: TStream): TBytes; overload;
 
Public function EncryptAsStream(AValue: TStream): TStream; virtual; abstract;
 
Protected function BeforeDecrypt(AValue: TStream): TStream;
 
Protected function BeforeEncrypt(AValue: TStream): TStream;
 
Protected function CanCript: boolean; virtual;
 
Protected procedure SetKey(const AValue: StringRAL); virtual;
 

Properties

Published property IntputType: TRALCriptoInOutType read FIntputType write FIntputType;
 
Published property Key: StringRAL read FKey write SetKey;
 
Published property OutputType: TRALCriptoInOutType read FOutputType write FOutputType;
 


GitHub Repository
Generated by PasDoc 0.16.0.