作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我需要将 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/
我是一名优秀的程序员,十分优秀!