senha / cript
Encriptador para senhas em php
v0.0.1
2023-10-27 19:40 UTC
Requires
- php: ^8.0|^8.1
- ext-curl: *
- ext-gd: *
Requires (Dev)
- phpunit/phpunit: ^10.4
This package is auto-updated.
Last update: 2024-10-28 14:28:51 UTC
README
Note: It's converted to base_64 in order to save in mysql
Installation
composer require senha/cript
Usage
use Senha\Cript\SaltCrypt;
$mykey = "mykey";
$secret = "password";
$scp = new SaltCrypt($mykey, $secret);
$encrypted = $scp->encrypt();
$decrypted = $scp->decrypt($mykey);
Output:lHi57dDf8qNWmhbq8M2s82TMplWWU9Yqr0BQptZCzik5p6y5yHzXR4E0SLJVJaBcgrUf7NjZsG+SEw==