Move actual password derivation to separate class
This commit is contained in:
parent
9e18d0deaf
commit
fe54b6dab0
3 changed files with 96 additions and 44 deletions
18
LegacyPasswordGenerator.h
Normal file
18
LegacyPasswordGenerator.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#import <ObjFW/ObjFW.h>
|
||||
|
||||
@interface LegacyPasswordGenerator: OFObject
|
||||
{
|
||||
size_t _length;
|
||||
OFString *_site;
|
||||
const char *_passphrase;
|
||||
unsigned char *_output;
|
||||
}
|
||||
|
||||
@property size_t length;
|
||||
@property (copy) OFString *site;
|
||||
@property const char *passphrase;
|
||||
@property (readonly) unsigned char *output;
|
||||
|
||||
+ (instancetype)generator;
|
||||
- (void)derivePassword;
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue