{"id":17333832,"url":"https://github.com/syntaxseed/libsodiumfacade","last_synced_at":"2025-07-08T12:03:10.506Z","repository":{"id":57063950,"uuid":"155029508","full_name":"syntaxseed/libsodiumfacade","owner":"syntaxseed","description":"A wrapper/facade class for PHP's Libsodium extension functions. Covers symmetric and public key encryption functions.","archived":false,"fork":false,"pushed_at":"2024-12-19T00:26:30.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T18:13:35.391Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/syntaxseed.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-10-28T02:51:53.000Z","updated_at":"2024-12-19T00:26:33.000Z","dependencies_parsed_at":"2022-08-24T10:10:21.851Z","dependency_job_id":null,"html_url":"https://github.com/syntaxseed/libsodiumfacade","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxseed%2Flibsodiumfacade","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxseed%2Flibsodiumfacade/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxseed%2Flibsodiumfacade/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syntaxseed%2Flibsodiumfacade/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syntaxseed","download_url":"https://codeload.github.com/syntaxseed/libsodiumfacade/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248933340,"owners_count":21185460,"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":[],"created_at":"2024-10-15T15:03:14.087Z","updated_at":"2025-04-14T18:13:40.234Z","avatar_url":"https://github.com/syntaxseed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Libsodium Facade\n=========================\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/tag/syntaxseed/libsodiumfacade.svg\" alt=\"GitHub tag (latest SemVer)\"\u003e\u0026nbsp;\u0026nbsp;\n    \u003cimg src=\"https://img.shields.io/badge/PHP-8.0+-brightgreen.svg\" alt=\"PHP v8.0+\"\u003e\u0026nbsp;\u0026nbsp;\n    \u003cimg src=\"https://img.shields.io/badge/PHP-8.1+-brightgreen.svg\" alt=\"PHP v8.1+\"\u003e\u0026nbsp;\u0026nbsp;\n    \u003cimg src=\"https://img.shields.io/github/license/syntaxseed/templateseed\" alt=\"License: MIT\"\u003e\u003cbr\u003e\n    \u003ca href=\"https://twitter.com/intent/follow?screen_name=syntaxseed\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/syntaxseed.svg?style=social\u0026logo=twitter\" alt=\"follow on Twitter\"\u003e\u003c/a\u003e\u0026nbsp;\u0026nbsp;\u003ca href=\"https://github.com/syntaxseed#donatecontribute\"\u003e\u003cimg src=\"https://img.shields.io/badge/Sponsor-Project-blue\" alt=\"Sponsor Project\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\nA wrapper/facade class for PHP's LibSodium extension. Providing symmetric and public key encryption and decryption static methods, and key generation methods.\n\nHex-encoded: All output converted to hex. Inputs expect hex-encoded values.\n\n* Licence: MIT\n* Version: 1.0.4\n* PHP Versions: 8.0+, 8.1+, 8.2+, 8.3+.\n* Author: Sherri Wheeler sherri.syntaxseed@ofitall.com\n* Packagist: https://packagist.org/packages/syntaxseed/libsodium\n\nInstall\n--------\n\nVia Composer:\n```\ncomposer require syntaxseed/libsodium\n```\n\nOr add to composer.json:\n```\n\"require\": {\n    \"syntaxseed/libsodium\": \"^1.0\"\n},\n```\n\nStatic Functions\n--------\n\n* Symmetric Encryption (one secret key)\n   * generateSymmetricKey()\n   * symmetricEncrypt($secretString, $symmetricKey)\n   * symmetricDecrypt($encryptedString, $nonce, $key)\n\n* Public-Key Encryption (public/private key pair)\n   * generateKeyPair()\n   * publicKeyEncrypt($secretString, $theirPublicKey, $ourPrivateKey)\n   * publicKeyDecrypt($encryptedString, $nonce, $ourPublicKey, $theirPrivateKey)\n\nUsage\n--------\n\nSee `examples/` directory.\n\nChangelog\n--------\n\n* v1.0.0 - (2018-10-27) Created. Added to GitHub.\n  * v1.0.1 - (2018-10-27) Update readme, add Composer instructions.\n  * v1.0.2 - (2022-02-02) Test for PHP 8.0. Add example usage file.\n  * v1.0.3 - (2022-03-13) Test for PHP 8.1. Fix PSR formatting.\n  * v1.0.4 - (2024-12-18) Test for PHP 8.3.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntaxseed%2Flibsodiumfacade","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyntaxseed%2Flibsodiumfacade","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyntaxseed%2Flibsodiumfacade/lists"}