I need help on base64

Discussion in 'Programming/Scripts' started by concept21, Nov 21, 2023.

Tags:
  1. concept21

    concept21 Active Member

    Hello Friends,
    What is the number in base64 which is identical to 65 in base 10?
    My ebook said it was A.

    However, I think it is BB.

    Please share your result. Thanks. :rolleyes:
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    So you do not mean the command base64, but positional numeral system with radix 64?
    Code:
    $ echo 65 | base64
    NjUK
    
    If number system base is 64, then 10 in that system means 64 in decimal system. So 65 decimal would be 11.
     
    pyte and ahrasis like this.
  3. pyte

    pyte Well-Known Member HowtoForge Supporter

    I was so confused yesterday reading OPs post. Thank you this makes alot more sense now :D
     
  4. RFC

    RFC New Member

    The number 65 in base 10 is represented as 'A' in base64 encoding. Base64 is a way of representing binary data in an ASCII string format, and it uses a set of 64 characters to do so.

    If your ebook mentioned that 65 in base 10 is 'A' in base64, then it is correct. 'BB' is not the base64 representation of 65 in decimal. It's essential to note that in base64, each character represents a unique group of 6 bits, so it does not follow the same pattern as decimal representation.
     
  5. concept21

    concept21 Active Member

    Yes.
    Base 64, base 64, Base64, base64 seem different from each other.
    I am learning digital encryption so that the 64 characters in the question must be chosen and mentioned at first.

    My ebook was written very badly and has many errors! :D
     

Share This Page