PHP code example of osumionline / plugin-crypt
1. Go to this page and download the library: Download osumionline/plugin-crypt 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/ */
osumionline / plugin-crypt example snippets
$crypt = new OCrypt('secret_key');
$encrypted_text = $crypt->encrypt('text'); // Resultado: "n0HrXZ6rj8CdxYB0xqGt4FTzsh0="
$decrypted_text = $crypt->decrypt('n0HrXZ6rj8CdxYB0xqGt4FTzsh0='); // Resultado: "text"