PHP code example of vladzur / cifrador

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

    

vladzur / cifrador example snippets


    $Cifrador = new Cifrador();
    
    //Encrypt text
    $texto_cifrado = $Cifrador->cifrar("Este texto será cifrado", "m1p4ssw0rd");
    echo $texto_cifrado;
    
    //Decrypt text
    $texto = $Cifrador->descifrar($texto_cifrado, "m1p4ssw0rd");
    echo $texto;