Security

Encryption and Decryption

Configuration

asjard:
  ## Encryption and Decryption Related Configuration
  cipher:
    ## Default Encryption/Decryption Component Name
    default: default
    ## If you need encryption/decryption config files, you must load this configuration into environment variables, for example
    ## asjard_cipher_aesCBCPkcs5padding_base64Key=
    ## asjard_cipher_aesCBCPkcs5padding_base64Iv=
    ## key is the name of the custom encryption/decryption component,
    ## value is the configuration required by the encryption/decryption component
    aesCBCPkcs5padding:
      ## Key, length must be 16, 24, or 32
      base64Key: ""
      ## Initialization vector (IV), length must be 16
      ## If empty, take the first 16 characters of base64Key
      base64Iv: ""

Custom Encryption and Decryption

Implement the following methods

Use

Config Using Encryption/Decryption

Last updated