This guide explains how to encrypt and decrypt a Cashu token using Krux Android App and clipboard.
-
Start at Cashu.me
Copy a Cashu token (a UTF-8 string). -
Copy to clipboard
You now have the Cashu token as text on your clipboard. -
Paste into Krux Go to
Tools -> Datum Tool -> Load from Clipboard.Krux receives the token as a UTF-8 encoded string.
-
Convert the string to bytes
Krux encodes the string using UTF-8, producing raw bytes.Convert Datum -> from utf8 -
Encrypt the bytes Press
Encryptand type your key, confirm PBKDF2 key stretching iterations, choose an encryption mode(AES-GCM, AES-CBC, etc.), and choose an ID (public data that is visible at the decryption time).The byte data is encrypted using your selected encryption mode.
-
Encode encrypted bytes to base64
Now pressto base64, or other text-like format (base43, base32, hex).The encrypted bytes are encoded into a base64 string, making them safe for text-based transfer.
Press
Done converting -
Copy the encrypted token to clipboard
PressExport to Clipboard.You now have a base64-encoded, encrypted Cashu token string that can be shared securely.
-
Paste the base64 string into Krux
Use the same or another Krux device to receive the encrypted cashu string.Tools -> Datum Tool -> Load from Clipboard -
Decode base64 string to bytes
Datum Tool won't recognize it as a KEF yet, you must first decode the base64 string back into encrypted bytes.Convert Datum -> from base64(or other text format you choose when encrypting) -
Decrypt the bytes
Now Datum recognizes KEF encryption format and encrypted bytes can be decrypted using the matching encryption key. -
Convert bytes back to text
Pressto utf8, so the decrypted bytes are decoded using UTF-8 to recover the original Cashu token string. -
Copy the token to clipboard
PressDone Converting -> Export to Clipboard.You now have the original token back in plaintext, ready to use at Cashu.me.