PHP code example of bariseser / cryptographers
1. Go to this page and download the library: Download bariseser/cryptographers library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bariseser / cryptographers example snippets
use Bariseser\Cryptographers;
//get all Algorithm
Cryptographers::getCipherMethods()
//Encode:
$encoded = Cryptographers::encrypt("Hello World");
//Decode:
$decoded = Cryptographers::decrypt($encoded);
echo $encoded.PHP_EOL;
echo $decoded.PHP_EOL;
//Output:
//bMhFJ86i3GckUaoq.FTAdoRaUOrs79Rs=
//Hello World
//Get Random Salt
Cryptographers::getRandomByte();