Base64 Encoding/Decoding explained

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ม.ค. 2025

ความคิดเห็น • 31

  • @dexmake
    @dexmake 2 ปีที่แล้ว +9

    I got what i wanted from minute 5 but i watch the whole thing just for the good way of explaining the subject. Thank you very much my man.

    • @Pentacode
      @Pentacode  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @mdshadab3470
    @mdshadab3470 3 ปีที่แล้ว +6

    For the past 5 hrs I've been searching for I dont know what but your video solved my problem, you are god's angel bro 😭😂

  • @bence4198
    @bence4198 ปีที่แล้ว

    You are a genius, I've been sucking with this about 2 days ago, and ur video brightened my mind THANKS!

  • @ashtonmiller8682
    @ashtonmiller8682 2 ปีที่แล้ว +1

    I have something I need decoded that's in base 64. I'm just learning, but it's important!

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars 5 หลายเดือนก่อน

    simple and to the point, thank you :)

  • @Mohan-jd6ck
    @Mohan-jd6ck 2 ปีที่แล้ว +3

    Great content .
    Correct me if i'm wrong,
    @3:45 , Is that a base64 table , instead of ASCII Table

  • @Colstonewall
    @Colstonewall 3 ปีที่แล้ว +4

    Very nice, thank you!

  • @gustavstreicher4867
    @gustavstreicher4867 ปีที่แล้ว +2

    "new Buffer" has been depricated since Node v6. Just use this:
    const newEncoded = Buffer
    .from(input[, initialEncoding])
    .toString(newEncoding);
    Also, the "=" at the end is important if you need to concatenate base64 strings.
    The use of "=" in the binary format doesn't make sense. It has to be padded with zeros "0". Your map of "1111=" to 60 proves this as it is actuall a map of "111100" to 60.
    Fun fact:
    Base64 encoding is a secondary kind of encoding relative to ASCII, since you pad (first with zeros, then with "=" symbols) to get base64, but to go back you need to trim (first trimming "=" then trimming zeros). You can't reverse their roles in this regard since the base64 character set is a subset of the ASCII character set.

  • @gautam_nath
    @gautam_nath 2 ปีที่แล้ว

    Absolutely Amazing

  • @engftz306
    @engftz306 ปีที่แล้ว

    very well explanation. Thank you

  • @shivkarj1456
    @shivkarj1456 2 ปีที่แล้ว +1

    Nice explanation!

  • @negardeylami6039
    @negardeylami6039 2 ปีที่แล้ว

    Thank you totally got it

  • @quinojuan2
    @quinojuan2 2 ปีที่แล้ว

    Sublime. Thanks

  • @terencejoker149
    @terencejoker149 2 ปีที่แล้ว +1

    nice job

  • @ramabookstroremalang9131
    @ramabookstroremalang9131 2 ปีที่แล้ว

    does a frontend dev convert image to base64 and the backend guy save it as string using LOB?

    • @Pentacode
      @Pentacode  2 ปีที่แล้ว

      In some databases they do that, since it's a text string, it's easy to represent.

  • @imtechnophile
    @imtechnophile 2 ปีที่แล้ว +1

    Can I use it for html

  • @ravendfj
    @ravendfj 2 ปีที่แล้ว

    Thanks a lot for the explication. Can you please tell me why you have to make groups of 6 bits?

    • @VioletMould
      @VioletMould 2 ปีที่แล้ว +2

      he explains early on that base64 only allows for encoding at 6-bits

    • @weekipi5813
      @weekipi5813 ปีที่แล้ว

      because with 6 bits you can have a total of 64 combinations: 2 to the 6th power is equal to 64. Namely if you use 6 bits you can generate 64 different combinations. You can use those combinations as indexes into a predefined table of symbols and there you have it.

  • @senthamarai_kannan.
    @senthamarai_kannan. 3 ปีที่แล้ว

    how to do this in angular typescript

  • @amitmalhotra4706
    @amitmalhotra4706 2 ปีที่แล้ว

    something is not adding here - 1111 cannot be 60 in decimal 2^3 + 2^2 + 2^1 + 2^0 = 8 + 4 + 2 + 1 = 15

    • @amitmalhotra4706
      @amitmalhotra4706 2 ปีที่แล้ว

      Okay got it! basically, the last one has been converted to 111100 (two newly added 00).

  • @T55sArt
    @T55sArt ปีที่แล้ว

    great for optimizing/taking advantage of funtions in the language, not so much for the actual learning :/

  • @krishnachaitanya4822
    @krishnachaitanya4822 3 ปีที่แล้ว +1

    What's the name of that VSCode theme?

    • @Nimplex
      @Nimplex 2 ปีที่แล้ว +1

      One Monokai

  • @jolllyroger1
    @jolllyroger1 2 ปีที่แล้ว

    And another one that skips the binary etc
    Why because you do not know it

  • @MagicJF
    @MagicJF 2 ปีที่แล้ว +1

    😄