Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/00f100/fcphp-crypto
- Owner: 00F100
- License: mit
- Created: 2018-06-16T21:13:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-04T18:55:03.000Z (over 6 years ago)
- Last Synced: 2024-05-12T21:20:49.705Z (6 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: 1
- 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)
[![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);```