What's BPEncryptor?
BPEncryptor is a PHP script that provides two-way password encryption. [ DEMO ]

Developers can use this script for converting plain password into an unreadable string; and therefore allowed to revert it back to the plain text. The length of encrypted string is arbitrary and relied on the length of plain text provided.

BPEncryptor is written in PHP5, Object-oriented method. To use this script, you must have at least PHP5 installed.
How to use?
It's easy to use BPEncryptor. The first thing you need to do is to have a copy of class.bpencryptor.php file in your web folder. Include it in your php file that you wanted to use the function. Here is an example of implementing it:


require_once "class.bpencryptor.php";


$obj = new BPEncryptor();


//call this method by providing plain password (eg: abc123)
$obj->encryptText("abc123");
//call this class property to display encrypted text
//example result: 2m6q5f5pS8T0r7t0R7t0e4r8d3Q7c2q78S9j0J0K

echo $obj->encryptedText;


//call this method by providing encrypted password
$obj->decryptText("2m6q5f5pS8T0r7t0R7t0e4r8d3Q7c2q78S9j0J0K");
//call this class property to display plain text
//example result: abc123
echo $obj->plainText;