openpolitics.com

  • writing
  • quotes
  • Topics
    • academia
    • corruption
    • economics
    • education
    • environment
    • finance
    • history
    • hypertext
    • media
    • philosophy
    • psychology
    • religion
    • russia
    • ted nelson
  • about
← Previous Next →

Browser Support for base-64 encoding

Encode a string in base-64:

var str = “Hello World!”;
var enc = window.btoa(str);

var res = “Encoded String: ” + enc;

The result of res will be:

Encoded String: SGVsbG8gV29ybGQh
source: $link[host]

Tags: javascript, programming

Read Original Source

Tim Langeman © 2025 · Genesis Framework · WordPress · Log in