PHP code example of moviet / php-encryption

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

    

moviet / php-encryption example snippets


  Crypsic::mode('CBC-128') // AES-128-CBC
  

   Crypsic::listen('My card number 9999-6666-6666-9999')
   

   $mySecretData = 'Dada/nanana367OYeyeyyHola666HoopYeYEYsipp+imo27blablabla'

    Crypsic::look($mySecretData)
    

   Crypsic::saveKey('This is new key please make em zig-zag, bilbo')
   

   Crypsic::key('edfes73ccd0191jbabbdbab0101bdbeb10290abbaba1010edsf820')
   

  Pwsuit::pwhash('Default','hello this is my password')
  

  Pwsuit::cost(26)->pwhash('Default','Yes dont blow my head')
  

  Pwsuit::pwhash('Argon2i','my Argon password is dadada')
  

  Pwsuit::memory(4024)
  ->time(4)
  ->thread(4)
  ->pwhash('Argon2id','Hey bob this is my password')
  

   // First create Keystore and save
   Crypsic::saveKey('let me burn the typos')
   
   // Then create password and save
   Pwsuit::cost(16)->pwhash('Default','MyPassword')
   

   $postPassword = $_POST['password']

   Crypsic::authKey($postPassword)->hash('My Data Hashed Password')->key('My key')

   Crypsic::look('My Encrypt Data')
   

   Pwsuit::pwTrust($myPassword, $dataPassword) // Return Boolen
   

   Pwsuit::pwRehash('Default', $myPassword, $dataPassword)
   

   $info = Pwsuit::pwInfo($my_data_hashed) \\ see dump output with yaayy
   



use Moviet\Heavy\Crypsic;
use Moviet\Heavy\Hash\Pwsuit;

/*  
* Create a long and burn your typos, whatever
*/
$mykey = Crypsic::saveKey('Something a heavy key');

// output : c185128d2ae131b3ecf25779d2ef6120a6d9aa53ea5f422e0e2f6e97385954e9

Crypsic::key($mykey); 

$encrypt = Crypsic::listen('this is new metal song : 9999-8888-6666-1717'); 

// output : J7A2jpefNGp8HBFH0i1Xon5l59EnGFs8zFWdcMlZ1BQ4cYhNv+awNMOLZMcehkc2k6coPlN1oprVCTZPC60t6p5JvLcZHxAPVC5v08XHIYss+yTuLuYZ5CH6RfDpaZzZ

$decrypt = Crypsic::look($encrypt); 

// output : this is new metal song : 9999-8888-6666-1717



use Moviet\Heavy\Crypsic;
use Moviet\Heavy\Hash\Pwsuit;

$thor = Crypsic::saveKey('Do you know locky');

$tonyStark = Pwsuit::pwhash('Default','I know spiderman with Bob');

// Save the Output : $2y$14$yUwjHQmnOeZyHWCcA5mlE.t3nVySA5NomMGmptkbNG170T3IkGQH.

$jarvish = $_POST['password'];

$captainAfrica = Crypsic::authKey($jarvish)->hash($tonyStark)->key($thor);

$thanos = Crypsic::look($captainAfrica); // and thanos doesn't have any idea => who is bob


composer