Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 8 hours ago
JSON representation

Package to crypto contents using Sodium Lib

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)

[![Build Status](https://travis-ci.org/00F100/fcphp-crypto.svg?branch=master)](https://travis-ci.org/00F100/fcphp-crypto) [![codecov](https://codecov.io/gh/00F100/fcphp-crypto/branch/master/graph/badge.svg)](https://codecov.io/gh/00F100/fcphp-crypto)

[![PHP Version](https://img.shields.io/packagist/php-v/00f100/fcphp-crypto.svg)](https://packagist.org/packages/00F100/fcphp-crypto) [![Packagist Version](https://img.shields.io/packagist/v/00f100/fcphp-crypto.svg)](https://packagist.org/packages/00F100/fcphp-crypto) [![Total Downloads](https://poser.pugx.org/00F100/fcphp-crypto/downloads)](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);

```