|
JavaScript has built-in support for base64 encoding & decoding. |
|
|
Encoding a string. |
|
|
Decoding a string |
|
|
We can also use a node.js buffer to encode/decode a string. |
|
|
|
|
|
|
Decoding from buffer works the same way. |
|
|
|
Next example: Command-Line Arguments.