PHPackages                             4cm/crypto - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. 4cm/crypto

ActiveLibrary[Security](/categories/security)

4cm/crypto
==========

A two-way encryption method for PHP.

1.0.1(6y ago)18MITPHPPHP &gt;=7.2.0

Since Jul 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/4cm/crypto)[ Packagist](https://packagist.org/packages/4cm/crypto)[ Docs](https://4cm.com/)[ RSS](/packages/4cm-crypto/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

crypto()
========

[](#crypto)

A two-way encryption method/class for PHP.

Requirements:
-------------

[](#requirements)

This function requires that your server has PHP *(7.2.0+)* and that you have [sodium](https://www.php.net/manual/en/sodium.installation.php) installed and enabled on your server.

Versions:
---------

[](#versions)

July 29, 2019 - Version `1.0.0` is [released](https://github.com/4cm/crypto/blob/master/src/crypto.php).

Installation:
-------------

[](#installation)

### With Composer:

[](#with-composer)

```
$ composer require 4cm/crypto

```

```
{
    "require": {
        "4cm/crypto": "*"
    }
}
```

### Without Composer:

[](#without-composer)

Why are you not using [composer](http://getcomposer.org/)? You can [directly download](https://github.com/4cm/crypto/blob/master/src/crypto.php) the php file and upload it to your server and include the file however it is you normally include php files.

```
