senha/cript

Encriptador para senhas em php

v0.0.1 2023-10-27 19:40 UTC

This package is auto-updated.

Last update: 2024-10-28 14:28:51 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

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==