Skip to content

nathanlegroux/php-simple-encryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 

Repository files navigation

  • !Note : Change your hash key in function.php ( $clef )

Example to (un)encrypt $mot

// Encrypt

<?php

include 'function.php';

$mot = 'Hey';

echo mdp($mot, 'illisible');  // encrypt "Hey"

?>

// Unencrypt

<?php


include 'function.php';

$mot = 'Djoceicecoe';

echo mdp($mot, 'lisible');  // unencrypt "Djoceicecoe" to "Hey" ( it's an example 😆 )

?>

Example to (un)encrypt a post request named "mot"

// Encrypt

<?php


include 'function.php';

echo mdp($_POST["mot"], 'illisible');  // unencrypt "$_POST["mot"]"

?>

// Unencrypt

<?php

include 'function.php';

echo mdp($_POST["mot"], 'lisible');  // encrypt "$_POST["mot"]"

?>

Releases

No releases published

Packages

No packages published

Languages