Post
Share your knowledge.
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
Answers
2When you use the sui keytool generate
command, the output is indeed in a Base64 format. The .key file generated contains Base64 encoded information, including the keypair. You typically don't need to extract Base64 from it separately unless you have specific needs for the Base64 string itself.
If your key file was created using a tool like sui keytool
, the entire content should be Base64 encoded. However, if you want to confirm or use it as a Base64 string elsewhere, you can read the file content as you would any text file, as it's already in a Base64 formatted string.
Do you know the answer?
Please log in and share it.
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
- yhant3235How to access and manage nested structs and dynamic fields in Move?56
- deriss82How to convert private key to new format via CLI33
- elfDani176Can you export an official Sui wallet to Razor or other Sui wallets?32
- Xavier.eth223'DataClone Failed to execute' error33
- yhant3235How can I claim Deep tokens if I have a DeepBook NFT?32