PHP code example of blueprint / l2encrypt

1. Go to this page and download the library: Download blueprint/l2encrypt 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/ */

    

blueprint / l2encrypt example snippets




use Blueprint\L2encrypt;

$value = 'EncryptMe';

$encryptedValue = L2encrypt::encrypt($value);
echo $encryptedValue; // Output: 0x35d069fe4fe03fe6f7dbb4b578e2c4c4



use Blueprint\L2encrypt;

$_POST['password'] = 'test';
$password = $_POST['password'];

$encryptedPassword = L2encrypt::userPassword($password);
echo $encryptedPassword; // Output: 0xb53b56edac3b1d1d28b197975ac0e6e6



use Blueprint\L2encrypt;

$_POST['answer'] = 'LineageLover';
$answer = $_POST['answer'];

$encryptedAnswer = L2encrypt::userAnswer($answer);
echo $encryptedAnswer; // Output: 0xa51f521f9e296f8a57d71d65a8321414