Sui.

Post

Share your knowledge.

Dominikus .
Jan 05, 2025
Discussion

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
0
2
Share
Comments
.

Answers

2
skywinder.
Jan 6 2025, 03:32

When 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.

0
Comments
.
elfDani.
Jan 6 2025, 10:17

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.

0
Comments
.

Do you know the answer?

Please log in and share it.

We use cookies to ensure you get the best experience on our website.
More info