Download the PHP package shetabit/crypto without Composer
On this page you can find all versions of the php package shetabit/crypto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download shetabit/crypto
More information about shetabit/crypto
Files in shetabit/crypto
Download shetabit/crypto
More information about shetabit/crypto
Files in shetabit/crypto
Vendor shetabit
Package crypto
Short Description Asymmetric crypto package
License MIT
Homepage https://github.com/shetabit/crypto
Package crypto
Short Description Asymmetric crypto package
License MIT
Homepage https://github.com/shetabit/crypto
Please rate this library. Is it a good library?
Informations about the package crypto
Crypto
This package can be used to Encrypt, Decrypt and Sign data using Asymmetric algorithms in php.
the below algoritms can be used:
- RSA
- DSA
- DH
- EC
Install
Via Composer
How to use
here is a simple encoding/decoding example.
Create private key
you can create a private key like the below
the below algorithms can be used:
- RSA: use Crypto::OPENSSL_KEYTYPE_RSA
- DSA: use Crypto::OPENSSL_KEYTYPE_DSA (not completely supported by PHP OpenSSL)
- DH: use Crypto::OPENSSL_KEYTYPE_DH (not completely supported by PHP OpenSSL)
- EC: use Crypto::OPENSSL_KEYTYPE_EC (not completely supported by PHP OpenSSL)
Create public key:
a public key can be generated using a private key
Encrypt data:
- data must be in string format.
- you need a valid public key to encrypt data.
Decrypt data:
- you need a valid public key to decrypt data.
Sign data:
- data must be in string format.
- you need a valid public key to sign data.
verify signature:
- you need a valid public key to verify data.
All versions of crypto with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
The package shetabit/crypto contains the following files
Loading the files please wait ....