Skip to content

Commit 39f26c5

Browse files
committed
Remove direct dependency on Base32
1 parent ff2c722 commit 39f26c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Authenticator/Classes/OTPTokenEntryViewController.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#import "OTPSegmentedControlCell.h"
2727
#import "OTPTextFieldCell.h"
2828
#import <OneTimePassword/OneTimePassword.h>
29-
#import <Base32/MF_Base32Additions.h>
3029

3130

3231
typedef enum : NSUInteger {
@@ -123,7 +122,7 @@ - (void)createToken
123122
{
124123
if (!self.formIsValid) return;
125124

126-
NSData *secret = [NSData dataWithBase32String:self.secretKeyCell.textField.text];
125+
NSData *secret = [NSData secretWithString:self.secretKeyCell.textField.text];
127126

128127
if (secret.length) {
129128
OTPTokenType tokenType = (self.tokenTypeCell.segmentedControl.selectedSegmentIndex == OTPTokenTypeIndexTimer) ? OTPTokenTypeTimer : OTPTokenTypeCounter;

0 commit comments

Comments
 (0)