Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Each base64 character represents 6 bits of data (which is why base64 is padded with ='s at the end).

Try running `base64 -d <<< a` and it will fail, but `base64 -d <<< aaaa` works (4*6 == 24 bits, which is divisible by 8 and gives 3 bytes of output)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: