lbase64 icon indicating copy to clipboard operation
lbase64 copied to clipboard

Lua base64 decoder/encoder

Results 4 lbase64 issues
Sort by recently updated
recently updated
newest added

In `base64.lua` in `function base64.decode` * pattern = ('[^%%w%%%s%%%s%%=]'):format( char(s62), char(s63) ) * local padding = b64:sub(-2) == '==' and 2 or b64:sub(-1) == '=' and 1 or 0 These...

The decode function assumes that the special characters in the used Base64 alphabet are always at positions 62 and 63. This is not always true. The alphabet used by [crypt...

`base64.decode("BCVxsr7N_eNgVRqvHtD0zTZsEc6-VV-JvLexhqUzORcxaOzi6-AYWXvTBHm4bjyPjs7Vd8pZGH6SRpkNtoIAiw4", base64.makedecoder('-', '_'))` gives an error. adding one or two = padding fixes it, but then it is missing the last three bytes

https://datatracker.ietf.org/doc/html/rfc4648#section-5