Skip to content

vargalaszlo87/ghcrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

GHCrypt

This is a keyless encrypt/decrypt algorithm for plain text.

Usage/Examples

<?php
$text = "follow the white rabbit...";

	$myCrypt = new GHCrypt();
	$encrypt = $myCrypt -> enstring($text);
	$decrypt = $myCrypt -> destring($encrypt);

	echo "Plain-text: ".$text."\n";
	echo "Crypted: ".$encrypt."\n";
	echo "Decrypted: ".$decrypt."\n";

unset($myCrypt);
?>

Demo

The result after two runs:

App Screenshot