Download the PHP package kigkonsult/openssltoolbox without Composer
On this page you can find all versions of the php package kigkonsult/openssltoolbox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package openssltoolbox
OpenSSLToolbox
provides object-oriented, secure and extended access to PHP OpenSSL functions
Conception basics
The OpenSSL pkey functions are assembled in the
- OpenSSLPkeyFactory class
The OpenSSL CSR functions are assembled in the
- OpenSSLCsrFactory class
The OpenSSL x509 functions are assembled in the
- OpenSSLX509Factory class
The OpenSSL pkcs7 functions are assembled in the
- OpenSSLPkcs7Factory class
The OpenSSL pkcs12 functions are assembled in the
- OpenSSLPkcs12Factory class
The OpenSSL spki functions are assembled in the
- OpenSSLSpkiFactory class
Remaining OpenSSL functions are assembled in the
- OpenSSLFactory class
Asserts and convenient salt, base64, hex, pack utility etc methods are assembled in the
- Assert class
- Convert class
Methods
All methods have
- argument validation and throws InvalidArgumentException on error
- errorHandler protection and result error evaluation, throws RuntimeException on error
Method names originates from OpenSSL function names
- Ex 'openssl_pkey_export' is encapsulated in method OpenSSLPkeyFactory::export()
Most methods has also more convenient and describable named method alias
- Ex OpenSSLPkeyFactory::getPrivateKeyAsPemString() for 'openssl_pkey_export'
Most methods (ex setters) are chainable (ie return 'static')
The OO-classes, above, has 'factory' methods, support 'one-liners' and inherit usefull constants defind in the OpenSSLInterface
Supplementary methods for message digest / hmac digest support are assembled in the
- HashFactory class
- HmacHashFactory class
Example Usage
Generate keys :
Seal/open
Encrypt/decrypt
More encrypt/decrypt
Info
You will find
- class information in docs folder
- convenient constants in src/OpenSSLInterface
- a lot of more examples in the test folder.
Support
For support, please use Github/issues. Non-emergence support issues are, unless sponsored, fixed in due time.
Sponsorship
Donation using paypal.me/kigkonsult are appreciated. For invoice, please e-mail.
Installation
Composer
From the Command Line:
In your composer.json
:
Acquire access
Or
Download and acquire..
Tests
Tests are executed in mode, to alter, update PHP const last in .
Note, it will takes some time, 80% coverage...
But still remain untested parts, help appreciated.
Assert PHP 7+ using PHPCompatibility and PHPStan.
License
This project is licensed under the LGPLv3 License
All versions of openssltoolbox with dependencies
ext-openssl Version *
kigkonsult/loggerdepot Version >=1.04
psr/log Version >=1.1.0