Download the PHP package initphp/encryption without Composer
On this page you can find all versions of the php package initphp/encryption. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download initphp/encryption
More information about initphp/encryption
Files in initphp/encryption
Package encryption
Short Description PHP OpenSSL/Sodium Encryption and Decryption
License MIT
Informations about the package encryption
Encryption
PHP OpenSSL/Sodium Encryption and Decryption
Requirements
- PHP 7.4 or higher
- MB_String extension
- Depending on usage:
- OpenSSL extesion
- Sodium extension
Installation
Configuration
algo
: Used by OpenSSL handler only. The algorithm to use to sign the data.cipher
: Used by OpenSSL handler only. The encryption algorithm that will be used to encrypt the data.key
: The top secret key string to use for encryption.blocksize
: It is used for sodium handler only. It is used in thesodium_pad()
andsodium_unpad()
functions.
Usage
Methods
encrypt()
decrypt()
Writing Your Own Handler
Getting Help
If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker.
Getting Involved
All contributions to this project will be published under the MIT License. By submitting a pull request or filing a bug, issue, or feature request, you are agreeing to comply with this waiver of copyright interest.
There are two primary ways to help:
- Using the issue tracker, and
- Changing the code-base.
Using the issue tracker
Use the issue tracker to suggest feature requests, report bugs, and ask questions. This is also a great way to connect with the developers of the project as well as others who are interested in this solution.
Use the issue tracker to find ways to contribute. Find a bug or a feature, mention in the issue that you will take on that effort, then follow the Changing the code-base guidance below.
Changing the code-base
Generally speaking, you should fork this repository, make changes in your own fork, and then submit a pull request. All new code should have associated unit tests that validate implemented features and the presence or lack of defects. Additionally, the code should follow any stylistic and architectural guidelines prescribed by the project. In the absence of such guidelines, mimic the styles and patterns in the existing code-base.
Credits
License
Copyright © 2022 MIT License
All versions of encryption with dependencies
ext-mbstring Version *