dart-lang / crypto

A set of cryptographic functions implemented in pure Dart.
https://pub.dev/packages/crypto
BSD 3-Clause "New" or "Revised" License
274 stars 51 forks source link

Base64 should reject interstitial padding characters #19

Closed nex3 closed 6 years ago

nex3 commented 8 years ago

Currently, if there are a multiple of four = or %3D sequences in a Base64 string, the parser will treat them as zero bytes. This is clearly wrong; it should reject those strings like it does for strings with other numbers of =.

kevmoo commented 6 years ago

Base64 APIs were removed in https://github.com/dart-lang/crypto/commit/72c74719a78cc5f4e162023ca5b17d3a53d3cd4c