giftcards/encryption-bundle

将giftcards/encryption库集成到symfony的包

1.4.0 2019-12-10 16:03 UTC

This package is auto-updated.

Last update: 2024-09-11 02:28:36 UTC


README

将加密库集成到symfony的包

默认配置

# Default configuration for extension with alias: "giftcards_encryption"ftcards_encryption --ansi
giftcards_encryption:
    cipher_texts:
        rotators:

            # Prototype
            name:
                type:                 ~ # Required
                options:              []
        serializers:
            type:                 ~ # Required
            options:              []
            priority:             0
        deserializers:
            type:                 ~ # Required
            options:              []
            priority:             0
    profiles:

        # Prototype
        name:
            cipher:               ~ # Required
            key_name:             ~ # Required
    keys:
        sources:
            type:                 ~ # Required
            options:              []
            prefix:               ''
            add_circular_guard:   false
        cache:                false
        map:

            # Prototype
            name:                 ~
        fallbacks:

            # Prototype
            name:                 []
        combine:

            # Prototype
            name:
                left:                 ~ # Required
                right:                ~ # Required
    default_profile:      null
    doctrine:
        encrypted_properties:
            enabled:              true
            connections:

                # Default:
                - default

Doctrine

您可以通过设置doctrine.encrypted_properties.connections为数组来配置连接,该数组包含您在doctrine配置中配置的连接名称,以便分配加密属性监听器。如果您不使用doctrine,请将doctrine.encrypted_properties.enabled设置为false。