https://github.com/00f100/fcphp-crypto
Package to crypto contents using Sodium Lib
https://github.com/00f100/fcphp-crypto
crypto ext-sodium php php-sodium php7 sodium sodium-library string
Last synced: 3 months ago
JSON representation
Package to crypto contents using Sodium Lib
- Host: GitHub
- URL: https://github.com/00f100/fcphp-crypto
- Owner: 00F100
- License: mit
- Created: 2018-06-16T21:13:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-04T18:55:03.000Z (almost 7 years ago)
- Last Synced: 2025-04-17T03:08:20.287Z (3 months ago)
- Topics: crypto, ext-sodium, php, php-sodium, php7, sodium, sodium-library, string
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FcPhp Crypto
Package to crypto contents using [Sodium PHP Cryptography Extensions](http://php.net/manual/en/intro.sodium.php)
[](https://travis-ci.org/00F100/fcphp-crypto) [](https://codecov.io/gh/00F100/fcphp-crypto)
[](https://packagist.org/packages/00F100/fcphp-crypto) [](https://packagist.org/packages/00F100/fcphp-crypto) [](https://packagist.org/packages/00F100/fcphp-crypto)
## How to install
Composer:
```sh
$ composer require 00f100/fcphp-crypto
```or add in composer.json
```json
{
"require": {
"00f100/fcphp-crypto": "*"
}
}
```## How to use
```php
generateKey();// Example
$var = ['index' => 'value'];
$encode = $crypto->encode($key, $var);
$decode = $crypto->decode($key, $encode);```