Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 554 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 554 Bytes

PHP Library Crypt

The Crypt package provides pure PHP encryption methods with no external dependencies.

Background

Installation

Add the following to your composer file:

   "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/sinevia/php-library-crypt.git"
        }
    ],
    "require": {
        "sinevia/php-library-crypt": "dev-master"
    },

Usage

$pass = 'test';

$enc = Sinevia\Crypt::xorEncode('test',$pass);

$dec = Sinevia\Crypt::xorDecode(enc,$pass);