github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/md/b64enc.en.md (about)

     1  ### `b64enc()` {#fn-b64enc}
     2  
     3  Function prototype: `fn b64enc(key: str)`
     4  
     5  Function description: Base64 encode the string data obtained on the specified field
     6  
     7  Function parameters:
     8  
     9  - `key`: key name
    10  
    11  Example:
    12  
    13  ```python
    14  # input data {"str": "hello, world"}
    15  json(_, `str`)
    16  b64enc(`str`)
    17  
    18  # result
    19  # {
    20  #   "str": "aGVsbG8sIHdvcmxk"
    21  # }
    22  ```