Tag Archives: decryption

Ncrypt : A 2-way encryption library for PHP

I have released Ncrypt, a 2-way encryption library for PHP. Using Ncrypt, you can encrypt a string and decrypt an encrypted string. Steps 1. Include the class 1.a. Option 1 (using Composer) Add the following to your composer.json file-

Run composer install command. Include your autoloader file (if not already), like this-

1.b.…

A simple two-way function to encrypt or decrypt a string

Update: I have released Ncrypt, a library (OOP based) that facilitates the same. See here This function will provide you a two-way system to encrypt a string or decrypt an encrypted string.

So, how to encrypt a string? Just call this function and pass your string. Additionally set your second parameter to ‘e’ (optional).…