mirror of
https://github.com/bitwarden/browser
synced 2026-02-02 01:33:22 +00:00
Added comment about base64 format
This commit is contained in:
@@ -27,6 +27,7 @@ NSData *decodeBase64URL(NSString *base64URLString) {
|
||||
base64String = [base64String stringByReplacingOccurrencesOfString:@"_" withString:@"/"];
|
||||
|
||||
// Add padding if needed
|
||||
// Base 64 strings should be a multiple of 4 in length
|
||||
NSUInteger paddingLength = 4 - (base64String.length % 4);
|
||||
if (paddingLength < 4) {
|
||||
NSMutableString *paddedString = [NSMutableString stringWithString:base64String];
|
||||
|
||||
Reference in New Issue
Block a user