Download the PHP package syntaxseed/libsodium without Composer
On this page you can find all versions of the php package syntaxseed/libsodium. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download syntaxseed/libsodium
More information about syntaxseed/libsodium
Files in syntaxseed/libsodium
Download syntaxseed/libsodium
More information about syntaxseed/libsodium
Files in syntaxseed/libsodium
Vendor syntaxseed
Package libsodium
Short Description A wrapper/facade class for PHP's Libsodium extension functions. Covers symmetric and public key encryption functions.
License MIT
Package libsodium
Short Description A wrapper/facade class for PHP's Libsodium extension functions. Covers symmetric and public key encryption functions.
License MIT
Please rate this library. Is it a good library?
Informations about the package libsodium
Libsodium Facade
A wrapper/facade class for PHP's LibSodium extension. Providing symmetric and public key encryption and decryption static methods, and key generation methods.
Hex-encoded: All output converted to hex. Inputs expect hex-encoded values.
- Licence: MIT
- Version: 1.0.4
- PHP Versions: 8.0+, 8.1+, 8.2+, 8.3+.
- Author: Sherri Wheeler [email protected]
- Packagist: https://packagist.org/packages/syntaxseed/libsodium
Install
Via Composer:
Or add to composer.json:
Static Functions
-
Symmetric Encryption (one secret key)
- generateSymmetricKey()
- symmetricEncrypt($secretString, $symmetricKey)
- symmetricDecrypt($encryptedString, $nonce, $key)
- Public-Key Encryption (public/private key pair)
- generateKeyPair()
- publicKeyEncrypt($secretString, $theirPublicKey, $ourPrivateKey)
- publicKeyDecrypt($encryptedString, $nonce, $ourPublicKey, $theirPrivateKey)
Usage
See examples/
directory.
Changelog
- v1.0.0 - (2018-10-27) Created. Added to GitHub.
- v1.0.1 - (2018-10-27) Update readme, add Composer instructions.
- v1.0.2 - (2022-02-02) Test for PHP 8.0. Add example usage file.
- v1.0.3 - (2022-03-13) Test for PHP 8.1. Fix PSR formatting.
- v1.0.4 - (2024-12-18) Test for PHP 8.3.
All versions of libsodium with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0|^8.1|^8.2|^8.3
ext-sodium Version *
ext-sodium Version *
The package syntaxseed/libsodium contains the following files
Loading the files please wait ....