SafeBase64 class
Utility class for safe Base64 operations with padding removal Implements RFC4648 for Base64Url encoding
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decode(
String input) → List< int> -
Decodes Base64Url
input
string with or without padding -
encode(
List< int> bytes) → String -
Encodes
bytes
to Base64Url string without padding as per WebAuthn spec: Base64url with all trailing '=' characters omitted -
normalize(
String input) → String -
Normalizes Base64Url
input
to standard Base64 with padding This converts from WebAuthn/FIDO2 format to standard base64