Base64 Encoding/Decoding explained

Base64 Encoding/Decoding explained

Pentacode

2 года назад

43,477 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@engftz306
@engftz306 - 18.07.2023 10:26

very well explanation. Thank you

Ответить
@T55sArt
@T55sArt - 22.06.2023 08:15

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

Ответить
@gustavstreicher4867
@gustavstreicher4867 - 09.06.2023 16:16

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

Ответить
@bence4198
@bence4198 - 25.05.2023 01:00

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

Ответить
@gautam_nath
@gautam_nath - 28.12.2022 19:59

Absolutely Amazing

Ответить
@jolllyroger1
@jolllyroger1 - 16.12.2022 17:43

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

Ответить
@philbutthead
@philbutthead - 21.10.2022 03:34

What if there is a space between the words? like- "Hello There"
I tried it but it is wrong starting the second word, so I am guessing the space has something to do with it? Yelp!

Ответить
@negardeylami6039
@negardeylami6039 - 16.10.2022 18:14

Thank you totally got it

Ответить
@quinojuan2
@quinojuan2 - 03.10.2022 21:46

Sublime. Thanks

Ответить
@amitmalhotra4706
@amitmalhotra4706 - 05.09.2022 03:31

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

Ответить
@dexmake
@dexmake - 31.08.2022 19:07

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.

Ответить
@ravendfj
@ravendfj - 07.07.2022 21:08

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

Ответить
@ramabookstroremalang9131
@ramabookstroremalang9131 - 25.06.2022 14:27

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

Ответить
@terencejoker149
@terencejoker149 - 01.06.2022 12:21

nice job

Ответить
@shivkarj1456
@shivkarj1456 - 27.05.2022 08:10

Nice explanation!

Ответить
@imtechnophile
@imtechnophile - 19.05.2022 04:56

Can I use it for html

Ответить
@ashtonmiller8682
@ashtonmiller8682 - 18.05.2022 11:31

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

Ответить
@MagicJF
@MagicJF - 09.05.2022 19:47

😄

Ответить
@GoosefieldYT
@GoosefieldYT - 10.02.2022 14:07

SSBkaWRudCB1c2UgdGhpcyB2aWRlbyB0byBkZWNvZGUgYmFzZTY0IGFuZCBpcyB1c2luZyBhIGRlY29kZXIgdG8gbWFrZSB0aGlzIGNvbW1lbnQsIHlvdSBzaG91bGQgYmUgYWJsZSB0byB1bmRlcnN0YW5kIG1lIHJpZ2h0PyBJIGxpa2UgYmF0dGxlIGNhdHMgYW5kIGhhcyByZWRkaXQgYW5kIGRpc2NvcmQ=

Ответить
@mdshadab3470
@mdshadab3470 - 09.01.2022 14:50

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 😭😂

Ответить
@Kannanboss1
@Kannanboss1 - 08.01.2022 12:56

how to do this in angular typescript

Ответить
@krishnachaitanya4822
@krishnachaitanya4822 - 13.11.2021 15:52

What's the name of that VSCode theme?

Ответить
@Colstonewall
@Colstonewall - 04.07.2021 22:19

Very nice, thank you!

Ответить