Built-in Units

CIPHERS

In today's age, everyone has to be more security oriented in their development. You should not save a password in readable format, this even included those cases where you think no one will ever see it or have access to the encrypted database. If you store critical information in a non-ciphered way, someone will eventually find it, see it, and potentially use it. Thus, Modern Pascal provides you a few different ciphers that you can leverage day one in your development.

Globals



Functions

EncodeStr(const InString:String):String
DecodeStr(InString:String):String
EncodeB64(const InString:String):String
DecodeB64(InString:String):String
Affine(const S:String;bDecrypt:Boolean;coprime,key:Integer):String
AtBash(const S:String):String
CaesarianShift(const S:String;shift:Integer):String
ROT13(const S:String):String
Vigenere(sSource,sKey:String;bDecrypt:Boolean;iTableSize:Longint):String

Procedures