Комментарии:
very well explanation. Thank you
Ответитьgreat for optimizing/taking advantage of funtions in the language, not so much for the actual learning :/
Ответить"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.
You are a genius, I've been sucking with this about 2 days ago, and ur video brightened my mind THANKS!
ОтветитьAnd another one that skips the binary etc
Why because you do not know it
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!
Thank you totally got it
ОтветитьSublime. Thanks
Ответитьsomething is not adding here - 1111 cannot be 60 in decimal 2^3 + 2^2 + 2^1 + 2^0 = 8 + 4 + 2 + 1 = 15
Ответить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.
ОтветитьThanks a lot for the explication. Can you please tell me why you have to make groups of 6 bits?
Ответитьdoes a frontend dev convert image to base64 and the backend guy save it as string using LOB?
Ответитьnice job
ОтветитьNice explanation!
ОтветитьCan I use it for html
ОтветитьI have something I need decoded that's in base 64. I'm just learning, but it's important!
Ответить😄
ОтветитьSSBkaWRudCB1c2UgdGhpcyB2aWRlbyB0byBkZWNvZGUgYmFzZTY0IGFuZCBpcyB1c2luZyBhIGRlY29kZXIgdG8gbWFrZSB0aGlzIGNvbW1lbnQsIHlvdSBzaG91bGQgYmUgYWJsZSB0byB1bmRlcnN0YW5kIG1lIHJpZ2h0PyBJIGxpa2UgYmF0dGxlIGNhdHMgYW5kIGhhcyByZWRkaXQgYW5kIGRpc2NvcmQ=
Ответить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 😭😂
Ответитьhow to do this in angular typescript
ОтветитьWhat's the name of that VSCode theme?
ОтветитьVery nice, thank you!
Ответить