talentrydev/cryptography-bundle

Symfony bundle integrating talentrydev/cryptography library

3.0.0 2024-06-14 14:25 UTC

This package is auto-updated.

Last update: 2024-12-14 15:48:29 UTC


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:

OptionDefault valueRequiredDescription
encryption_key-yesKey used for encrypting strings. It must be generated using EncryptionServiceFactory::generateEncryptionKey() method.
hash_key-yesKey for generating hashes. It can be any string between 16 and 64 characters in length.

Development

  • Install dependencies: make deps
  • Run tests: make test