PHPackages                             rasalas/easycrypt - 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. rasalas/easycrypt

ActiveLibrary

rasalas/easycrypt
=================

turns array data or strings in url safe(optional) signed crypt strings and can decrypt them again and make sure it's the same data

v1.0.0(4y ago)07MITPHPPHP &gt;=5.3.0

Since Aug 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Rasalas/easycrypt)[ Packagist](https://packagist.org/packages/rasalas/easycrypt)[ RSS](/packages/rasalas-easycrypt/feed)WikiDiscussions master Synced 1mo ago

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

EasyCrypt
=========

[](#easycrypt)

EasyCrypt helps to easily encrypt data with a simple passphrase.

What is it for?
---------------

[](#what-is-it-for)

It encrypts array data or strings that you might want to append to your URL as GET data. Or maybe you want to put it in a hidden input. All yours to decide.

If someone tampered with the data, you'll notice, as it's going to return `false` instead of with data (this might change). That's also what's the `$salt` is for. EasyCrypt signs the data and checks if the data is still unchanged.

Please DO NOT use this to store user data or other sensitive data.

Installation
------------

[](#installation)

```
rasa@home:~$ composer require rasalas/easycrypt
```

Example usage
-------------

[](#example-usage)

```
