1. Go to this page and download the library: Download krmgns/cryptee 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/ */
krmgns / cryptee example snippets
use Cryptee\Cryptee;
// Keep this key in save!
$key = '4]%gmHo"e:]*hR(NQ?B...';
$str = 'Lorem ipsum dolor.';
$c = new Cryptee($key);
// Or hex way.
// $c = new Cryptee($key, Cryptee::HEX);
$crypted = $c->crypt($str);
$encoded = $c->encode($str);
$decoded = $c->decode($encoded);
printf("Crypted String: %s\n", $crypted);
printf("Encoded String: %s\n", $encoded);
printf("Decoded String: %s\n", $decoded);
// Crypted String: X�/����;���-6�[��
// Encoded String: WJAv2/6x5Du/5IXjLTakW+jr
// Decoded String: Lorem ipsum dolor.
// Keep these keys in save!
const FOO_KEY = 'z:W;[*l>Eq.h"t)cs#XhU\+!=S]#q)\yG-...';
const BAR_KEY = 'SNz6@b*/k(iw!plOVeTBWxpL[1$;la|kb2...';
$cFoo = new Cryptee(FOO_KEY);
$cBar = new Cryptee(BAR_KEY);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.