baseurl64 buffer decoding

Advertisements Can someone explain this behavior? Buffer.from(‘5d9RAjZ2GCob-86_Ql’, ‘base64url’).toString(‘base64url’) // 5d9RAjZ2GCob-86_Qg Please take a close look at the last character l – g >Solution : Your string is 18 characters long, With 6 Bits encoded in each character it means the first 16 characters represent 96 bytes and the last two represent one byte plus 4… Read More baseurl64 buffer decoding