Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript decode a sting in base64

const data = 'CodezUp';
console.log('---ORIGINAL-----', data)

// Encode String

const encode = Buffer.from(data).toString('base64')
console.log('
---ENCODED-----', encode)

// Decode String

const decode = Buffer.from(encode, 'base64').toString('utf-8')
console.log('
---DECODED-----', decode)
Source by codezup.com #
 
PREVIOUS NEXT
Tagged: #javascript #decode #sting
ADD COMMENT
Topic
Name
9+8 =