帖子
分享您的知识。
Dominikus 157
Jan 05, 2025
专家问答
How do I extract the Base64 from a .key file?
I'm a beginner and I'm trying to get the Base64 encoding from a .key file generated using sui keytool generate
. Could someone guide me on how to confirm that the file content is indeed Base64 encoded and how to extract it if necessary?
- Sui
- SDKs and Developer Tools
2
2
分享
评论
答案
2elfDani235
Jan 6 2025, 10:17如果您的密钥文件是使用类似的工具创建的sui keytool
,则整个内容应采用 Base64 编码. 但是,如果您想确认或在其他地方将其用作 Base64 字符串,则可以像读取任何文本文件一样读取文件内容,因为它已经在 Base64 格式的字符串中.
2
评论
skywinder203
Jan 6 2025, 03:32当你使用该sui keytool generate
命令时,输出确实是Base64格式. 生成的 .key 文件包含 Base64 编码信息,包括密钥对. 除非你对 Base64 字符串本身有特殊需求,否则你通常不需要单独从中提取 Base64.
1
评论
你知道答案吗?
请登录并分享。
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
128帖子204答案