Fixed #39 Overall search behavior ironed out.

Fixed #71 Added A simple entropy calculation for purely random generated passwords
Added separate Views for Group and Entry Inspector
Added "no Selection" view for Inpsector
This commit is contained in:
michael starke
2013-07-28 13:31:37 +02:00
parent e050840b6f
commit 07dae46b4c
38 changed files with 9013 additions and 5934 deletions

View File

@@ -72,4 +72,15 @@ static NSString *allowedCharactersString(MPPasswordCharacterFlags flags) {
return [self substringWithRange:NSMakeRange(randomIndex % [self length], 1)];
}
- (CGFloat)entropyWhithPossibleCharacterSet:(MPPasswordCharacterFlags)allowedCharacters orCustomCharacters:(NSString *)customCharacters {
if(nil != customCharacters) {
return 0; // We need a sophisticated parser here!
}
NSString *stringSet = allowedCharactersString(allowedCharacters);
CGFloat alphabetCount = [stringSet length];
CGFloat passwordLegnth = [self length];
return passwordLegnth * ( log10(alphabetCount) / log10(2) );
}
@end