PHP code example of marcosmarcolin / fricc2_encrypter

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

    

marcosmarcolin / fricc2_encrypter example snippets




use MarcosMarcolin\Fricc2Encrypter\Encrypter;

/src/new_file.php';

try {
    $Encrypter = new Encrypter($from, $to);
    $Encrypter->simpleEncrypt(); // true or false
} catch (Exception $e) {
    // Any error that occurs will throw an exception.
    var_dump($e->getMessage());
}



try {
    $Encrypter = new Encrypter($from, $to);
    $Encrypter->recursiveEncrypt(); // true or false
} catch (Exception $e) {
    // Any error that occurs will throw an exception.
    var_dump($e->getMessage());
}



// Only for recursive encoder

$faileds = $Encrypter->getFaileds()); // array
$success = $Encrypter->getSuccess()); // array