Download the PHP package soatok/dhole-cryptography without Composer
On this page you can find all versions of the php package soatok/dhole-cryptography. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download soatok/dhole-cryptography
More information about soatok/dhole-cryptography
Files in soatok/dhole-cryptography
Package dhole-cryptography
Short Description Boring (dull) cryptography for furry projects (created by a dhole)
License ISC
Informations about the package dhole-cryptography
Dhole Cryptography
PHP libsodium wrapper for Soatok's PHP projects. Released under the very permissive ISC license.
Requires PHP 7.2.
Dhole Cryptography in Other Programming Languages
Installing
Usage
Key Generation
You can generate a random key by invoking the static generate()
method. This
is not permitted on AsymmetricPublicKey
objects.
You can also instantiate key objects by passing a
HiddenString
instance containing the key material to the constructor.
Asymmetric Cryptography
Digital Signatures
Authenticated Public-Key Encryption
Note: You can only decrypt messages with this API. It combines
sodium_crypto_sign_detached()
with sodium_crypto_box_seal()
under the hood.
Anonymous Public-Key Encryption
This is faster than the authenticated API (since it doesn't verify the sender's Ed25519 signature), but anyone can encrypt messages to your public key.
Symmetric-Key Cryptography
Encryption
Encryption with Additional Data
Unencrypted Message Authentication
Password Storage
Keyring
You can serialize any key by using the Keyring
class.
The Keyring
class also supports keywrap. Simply pass a separate
SymmetricKey
instance to the constructor to get wrapped keys.
Support
If you run into any trouble using this library, or something breaks, feel free to file a Github issue.
If you need help with integration, Soatok is available for freelance work.
All versions of dhole-cryptography with dependencies
ext-json Version *
ext-sodium Version *
paragonie/constant_time_encoding Version ^2
paragonie/hidden-string Version ^1|^2
paragonie/sodium_compat Version ^1.19