{"id":18996062,"url":"https://github.com/00f100/fcphp-crypto","last_synced_at":"2025-04-22T13:49:16.034Z","repository":{"id":56893966,"uuid":"137610826","full_name":"00F100/fcphp-crypto","owner":"00F100","description":"Package to crypto contents using Sodium Lib","archived":false,"fork":false,"pushed_at":"2018-08-04T18:55:03.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-17T03:08:20.287Z","etag":null,"topics":["crypto","ext-sodium","php","php-sodium","php7","sodium","sodium-library","string"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/00F100.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-16T21:13:37.000Z","updated_at":"2022-02-12T12:33:35.000Z","dependencies_parsed_at":"2022-08-20T16:10:29.670Z","dependency_job_id":null,"html_url":"https://github.com/00F100/fcphp-crypto","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00F100%2Ffcphp-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00F100%2Ffcphp-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00F100%2Ffcphp-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/00F100%2Ffcphp-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/00F100","download_url":"https://codeload.github.com/00F100/fcphp-crypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250252238,"owners_count":21399959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crypto","ext-sodium","php","php-sodium","php7","sodium","sodium-library","string"],"created_at":"2024-11-08T17:33:48.349Z","updated_at":"2025-04-22T13:49:15.992Z","avatar_url":"https://github.com/00F100.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FcPhp Crypto\n\nPackage to crypto contents using [Sodium PHP Cryptography Extensions](http://php.net/manual/en/intro.sodium.php)\n\n[![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)\n\n[![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)\n\n\n## How to install\n\nComposer:\n```sh\n$ composer require 00f100/fcphp-crypto\n```\n\nor add in composer.json\n```json\n{\n    \"require\": {\n        \"00f100/fcphp-crypto\": \"*\"\n    }\n}\n```\n\n## How to use\n\n```php\n\u003c?php\n\nuse FcPhp\\Crypto\\Crypto;\n\n// Configure crypto\n$nonce = Crypto::getNonce();\n$cryto = new Crypto($nonce);\n$key = $cryto-\u003egenerateKey();\n\n\n// Example\n$var = ['index' =\u003e 'value'];\n$encode = $crypto-\u003eencode($key, $var);\n$decode = $crypto-\u003edecode($key, $encode);\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F00f100%2Ffcphp-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F00f100%2Ffcphp-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F00f100%2Ffcphp-crypto/lists"}