talentrydev / cryptography-bundle
Symfony bundle integrating talentrydev/cryptography library
3.0.0
2024-06-14 14:25 UTC
Requires
- php: ^8.3
- symfony/framework-bundle: ^6.3
- symfony/yaml: ^6.3
- talentrydev/cryptography: ^2.0.0
Requires (Dev)
- phpunit/phpunit: ^11
- squizlabs/php_codesniffer: ^3.7
README
This is a Symfony bundle used for integrating talentrydev/cryptography library into a Symfony project.
Installing
- Run:
composer require talentrydev/cryptography-bundle
- Add the CryptographyBundle to your kernel's
registerBundles
method:
return [
//...
new \Talentry\CryptographyBundle\CryptographyBundle();
];
Configuring
Bundle exposes the following configuration:
Option | Default value | Required | Description |
---|---|---|---|
encryption_key | - | yes | Key used for encrypting strings. It must be generated using EncryptionServiceFactory::generateEncryptionKey() method. |
hash_key | - | yes | Key for generating hashes. It can be any string between 16 and 64 characters in length. |
Development
- Install dependencies:
make deps
- Run tests:
make test