Download the PHP package byjg/crypto without Composer
On this page you can find all versions of the php package byjg/crypto. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor byjg
Package crypto
Short Description A generic repository for implement cryptographic algorithms with a customizable strong key generator.
License MIT
Package crypto
Short Description A generic repository for implement cryptographic algorithms with a customizable strong key generator.
License MIT
Please rate this library. Is it a good library?
Informations about the package crypto
Crypto
A "passwordless" cryptography library for symmetric encryption.
How it works?
The algorithm is well-know, but the major problem is HOW to store the symmetric key. Instead of store the key, this library use a key seed, and it is able to generate the key dynamically for each encrypting based on a key seed. The key seed is a list of 32 lines of 32 bytes each.
Usage
- The algorithm needs to be one of the algorithms returned by
openssl_get_cipher_methods()
. - The second parameter is the key seed. It is a list of 2-255 entries of 32 bytes each. You can generate it using the command
BaseCrypto::getKeySet()
Example
Below a full example:
Important
- Do not share the key seed.
- You'll only be able to decrypt the text if you have the same key seed used to encrypt it.
Additional Documentation
- Advanced uses of KeySet class
- Interoperability with JavaScript
Installation
Running the tests
Dependencies
All versions of crypto with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-openssl Version *
ext-openssl Version *
The package byjg/crypto contains the following files
Loading the files please wait ....