Download the PHP package shaggyrec/php-encrypt-decrypt without Composer
On this page you can find all versions of the php package shaggyrec/php-encrypt-decrypt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download shaggyrec/php-encrypt-decrypt
More information about shaggyrec/php-encrypt-decrypt
Files in shaggyrec/php-encrypt-decrypt
Download shaggyrec/php-encrypt-decrypt
More information about shaggyrec/php-encrypt-decrypt
Files in shaggyrec/php-encrypt-decrypt
Vendor shaggyrec
Package php-encrypt-decrypt
Short Description Simple PHP encryptor-decryptor
License
Package php-encrypt-decrypt
Short Description Simple PHP encryptor-decryptor
License
Please rate this library. Is it a good library?
Informations about the package php-encrypt-decrypt
php-encrypt-decrypt
Simple PHP encryptor-decryptor using openssl
Install
composer require shaggyrec/php-encrypt-decrypt
Usage
$phpEncryptorDecryptor = new PhpEncryptorDecryptor('secretKey', 'secretIv');
- Params
- secretKey - should have been previously generated in a cryptographically safe way, like openssl_random_pseudo_bytes
- secretIv - should have been generated n a cryptographically safe way, like openssl_random_pseudo_bytes
- Returns
- object PhpEncryptDecrypt\PhpEncryptorDecryptor
Encryptor
$phpEncryptorDecryptor->encrypt('string);
- Params
- encoding string
- Returns
- base64 encoded string hash
Decryptor
$phpEncryptorDecryptor->decrypt('encrypted string);
- Params
- decoding base64 hash string
- Returns
- Decoded string
- false if decoding was fail
All versions of php-encrypt-decrypt with dependencies
PHP Build Version
Package Version
Requires
ext-openssl Version
*
The package shaggyrec/php-encrypt-decrypt contains the following files
Loading the files please wait ....