class JSimplecrypt

JSimpleCrypt is a very simple encryption algorithm for encrypting/decrypting strings

Methods

__construct( string $privateKey = null)

Object Constructor takes an optional key to be used for encryption/decryption. If no key is given then the secret word from the configuration object is used.

string
decrypt( string $s)

Decrypt a string

string
encrypt( string $s)

Encrypt a string

Details

__construct( string $privateKey = null)

Object Constructor takes an optional key to be used for encryption/decryption. If no key is given then the secret word from the configuration object is used.

Parameters

string $privateKey Optional encryption key

string decrypt( string $s)

Decrypt a string

Parameters

string $s String to decrypt

Return Value

string

string encrypt( string $s)

Encrypt a string

Parameters

string $s String to encrypt

Return Value

string