njs_string_atob cannot handle cypertext unless the padding is intact
Closed this issue ยท 1 comments
ahnyujin commented
Hello ๐
We found it difficult that njs' atob works differently than we think.
Atob function in njs is decoding without considering padding of the ciphertext.
And for this reason, it's hard to detect errors early.
For example, 'aGVsbG8=', which is the base64 encoded 'hello'.
In most atob functions, 'aGVsbG8' is returned as 'hello', but njs doesn't.
I wonder if you have any plans to make any changes to this.
Lines 4276 to 4299 in a26f8cc