jaeger-app / encrypt
A simple encryption wrapper.
Installs: 9 166
Dependents: 3
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 2
Open Issues: 1
Requires
- php: >=5.4.0
- jaeger-app/exceptions: ^0.1
- phpseclib/phpseclib: ~2.0
Requires (Dev)
- phpunit/phpunit: 4.*
This package is auto-updated.
Last update: 2023-11-18 01:56:13 UTC
README
Provides a simple API to handle encrypting and decrypting strings.
Installation
Add jaeger-app/encrypt
as a requirement to your composer.json
:
$ composer require jaeger-app/encrypt
Basic Usage
$encrypt = new Encrypt(); $encrypt->setKey($encryption_key); $encoded = $encrypt->encode($string); $decoded = $encrypt->decode($encoded); $guid = $encrypt->guid();