Dave Cridland wrote:
For maximum pedantry, you might note that the base64 encoding used MUST NOT contain whitespace (which RFC 4648 says is the default anyway) and MUST set padding bits to 0 (which RFC 4648 says applications MAY require).These requirements mean that the resultant base64 from any given input has precisely one form, and so can be used for direct comparison.
Yes, this is important to specify. - Ian
