2
0
MasterPassword/OnePassword/OPElementGeneratedEntity.m
Maarten Billemont 713ec69a20 UI improvements & security.
[ADDED]     Settings for remembering and storing the master password.
[ADDED]     KeyChain used to store master password & hash.
[IMPROVED]  Remember whether help is hidden.
[FIXED]     Making passwords stored.
[ADDED]     Generated password counter. Edit stored passwords.
[IMPROVED]  UI prettier and better documented.
[ADDED]     Warnings when changing a site's password.
2012-01-19 17:40:39 +01:00

30 lines
707 B
Objective-C

//
// OPElementGeneratedEntity.m
// OnePassword
//
// Created by Maarten Billemont on 16/01/12.
// Copyright (c) 2012 Lyndir. All rights reserved.
//
#import "OPElementGeneratedEntity.h"
#import "OPAppDelegate.h"
@implementation OPElementGeneratedEntity
@dynamic counter;
- (id)content {
if (![self.name length])
return nil;
if (self.type & OPElementTypeCalculated)
return OPCalculateContent(self.type, self.name, [OPAppDelegate get].keyPhrase, self.counter);
@throw [NSException exceptionWithName:NSInternalInconsistencyException
reason:[NSString stringWithFormat:@"Unsupported type: %d", self.type] userInfo:nil];
}
@end