Best Hacks

Saturday 11 August 2012

HACK : Simple encryption-decryption algorithm in php





HACK : Simple encryption-decryption algorithm in php

For those peoples who want to save their passwords encrypted.


//function to encrypt the string
function encode5t($str)
{
for($i=0; $i<5;$i++)
{
$str=strrev(base64_encode($str)); //apply base64 first and then reverse the string
}
return $str;
}

//function to decrypt the string
function decode5t($str)
{
for($i=0; $i<5;$i++)
{
$str=base64_decode(strrev($str)); //apply base64 first and then reverse the string}
}
return $str;
}
Like Us.... Receive updates on your Facebook wall!!!!
 

Something About Author:

Page Views

Visitors

free counters
Follow Me on Pinterest

Follow Us:

Do Not Copy

Google PageRank Checker Powered by  MyPagerank.Net