\Pluf_Crypt

یک کلاس ساده برای کارهای رمزنگاری

برخی از کارهای ساده و پرکاربرد رمزنگاری در این کلاس پیاده سازی شده که در کاربردهای متفاوت سیستم به کار گرفته شود. از این میان می‌توانیم به رمز کردن و رمزگشایی از این داده‌ها اشاره کنیم.

Summary

Methods
Properties
Constants
__construct()
encrypt()
decrypt()
$key
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$key

$key : 

Type

Methods

__construct()

__construct(  $key = '') 

Construct the encryption object.

Parameters

$key

encrypt()

encrypt(  $string,   $key = '') : string

Encrypt a string with a key.

If the key is not given, $this->key is used. If $this->key is empty an exception is raised.

Parameters

$string
$key

Returns

string —

Encoded string

decrypt()

decrypt(  $string,   $key = '') : string

Decrypt a string with a key.

If the key is not given, $this->key is used. If $this->key is empty an exception is raised.

Parameters

$string
$key

Returns

string —

Decoded string