PHP code example of testinaweb / dynamic-crypto
1. Go to this page and download the library: Download testinaweb/dynamic-crypto 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/ */
testinaweb / dynamic-crypto example snippets
use DynamicCrypto\DynamicCryptoFactory;
$passPhrase = 'ILoveDC';
$input = 'Your string here';
$dynamicEncrypt = DynamicCryptoFactory::buildDynamicEncrypter($passPhrase);
$dynamicDecrypt = DynamicCryptoFactory::buildDynamicDecrypter($passPhrase);
$encryptedString = $dynamicEncrypt->encrypt($input);
$decryptedString = $dynamicDecrypt->decrypt($encryptedString);