talentrydev/cryptography-bundle

Symfony bundle integrating talentrydev/cryptography library

2.0.0 2023-06-16 07:52 UTC

This package is auto-updated.

Last update: 2024-05-16 10:24:59 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