Javascript Reference
Categories: Global

javascript Global atob( ), btoa( )

@March 25, 2009, 2:52 a.m.
atob( ), btoa( ) Firefox/Netscape/NN 4 IE n/a ECMA n/a  
atob("base64EncodedData") btoa("stringToBeEncoded")

These methods let you convert arbitrary strings (including strings conveying characters representing binary data and Unicode values) to a 65-character subset of the U.S.-ASCII character set. Encoding in this so-called base64 scheme allows any data to be conveyed along even the most rudimentary transport mechanism. You can read about the rationale and internal mechanisms of the encoding/decoding conversions in RFC 1521 of the Internet Engineering Task Force (http://www.ietf.org/rfc/rfc2045.txt).

 

Use the btoa( ) method to encode string data into the base64 scheme. The resulting encoded data will consist of ASCII characters a-z, A-Z, 0-9, and three symbols (/, +, =). Use the atob( ) method to decode base64 encoded data back to its original version.

 
Parameters
 
  • A string containing base64 data either encoded on the client or received as part of a document from a server that performs its own encoding.
  • A string characters to be encoded to base64 for internal or external use. For example, an encoded value could be assigned to the value property of an input element for submission to a server process designed to receive base64 data.
 
Returned Value

A string.

buy atorvastatin 40mg sale <a href="https://lipiws.top/">lipitor online buy</a> lipitor canada
Tmnlsn - 9 months
Bitcoin Cash is a cryptocurrency. In mid-2017, a group of developers wanting to increase bitcoins block size limit prepared a code change. The change, called a hard
<a href=https://bitcoinfr.biz/comment-chiffrer-toutes-vos-donnees-en-ligne-et/>ltc to btc</a>
ETHBok - 2019-07-14
what does IE support
paigeat - 2011-06-16

Powered by Linode.