gpt4 book ai didi

YAML 中的 RSA 公钥/私钥

转载 作者:行者123 更新时间:2023-12-04 03:01:58 50 4
gpt4 key购买 nike

我需要将 RSA key 对存储在 YAML 文件中,但对 yaml 语法的理解仍然有限并且缺乏示例,这让我不得不寻找答案。

我将开始使用我所拥有的东西,但我想知道是否有人可以快速简洁地解释我如何将这种性质的东西存储在 yaml 中。

最佳答案

您可以将 key 存储为文本(“ASCII 装甲”/base 64 编码)。 From Wikipedia ,YAML 中多行字符串的语法是:

- title: An example multi-line string in YAML
body : |
This is a multi-line string.
"special" metacharacters may
appear here. The extent of this string is
indicated by indentation.

关于YAML 中的 RSA 公钥/私钥,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8637419/

50 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com