Bitcoin Forum
September 01, 2024, 05:58:15 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum Encrypted format  (Read 158 times)
ulhaq (OP)
Sr. Member
****
Offline Offline

Activity: 503
Merit: 286


View Profile
October 13, 2017, 09:17:35 PM
 #1

It looks like the encrypted seed is encoded in base64 and always starts with the same few characters and ends in an equal sign, is this right? Will it always be the same number of characters?
pooya87
Legendary
*
Offline Offline

Activity: 3556
Merit: 10808



View Profile
October 14, 2017, 04:28:25 AM
 #2

it is encoded in Base64 but it doesn't always start with the same few characters and it doesn't nessaasrily end with an "=".
the equal sign (=) is for padding.

from Wikipedia:
"The final '==' sequence indicates that the last group contained only one byte, and '=' indicates that it contained two bytes."

you can see the examples there for more information.

this can also be helpful: https://stackoverflow.com/questions/4080988/why-does-base64-encoding-require-padding-if-the-input-length-is-not-divisible-by

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!