Base64 (Node.js)
텍스트를 Base64로 인코딩/디코딩하는 기본 예제.
// Node.js: Buffer 기반 Base64 인코딩/디코딩
const text = 'hello world'
const encoded = Buffer.from(text, 'utf8').toString('base64')
const decoded = Buffer.from(encoded, 'base64').toString('utf8')
console.log({ encoded, decoded })