1. Go to this page and download the library: Download crowdstar/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/ */
crowdstar / crypt example snippets
$secretKey = "1234567890123456";
use CrowdStar\Crypt\Crypt;
$encodedEncryptedData = (new Crypt($secretKey))->encrypt("message");
use CrowdStar\Crypt\Crypt;
$encodedEncryptedData = (new Crypt($secretKey))->decrypt("encoded_encrypted_data");
use CrowdStar\Crypt\Crypt;
$crypt = new Crypt($secretKey);
$alternateIVLength = 8;
$encodedEncryptedData = $crypt->encrypt("message", $alternateIVLength);
$plainText = $crypt->decrypt($encodedEncryptedData, $alternateIVLength);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.