Removed obsolete category since it's transferred to MiniKeePassLib

This commit is contained in:
michael starke
2013-06-25 02:03:57 +02:00
parent 8f884d799a
commit b8375d0514
5 changed files with 2 additions and 43 deletions

View File

@@ -48,7 +48,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1063</string>
<string>1064</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NSHumanReadableCopyright</key>

View File

@@ -1,15 +0,0 @@
//
// NSData+MPRandomBytes.h
// MacPass
//
// Created by Michael Starke on 30.03.13.
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSData (MPRandomBytes)
+ (NSData *)dataWithRandomBytes:(NSUInteger)lenght;
@end

View File

@@ -1,20 +0,0 @@
//
// NSData+MPRandomBytes.m
// MacPass
//
// Created by Michael Starke on 30.03.13.
// Copyright (c) 2013 HicknHack Software GmbH. All rights reserved.
//
#import "NSData+MPRandomBytes.h"
#import <Security/SecRandom.h>
@implementation NSData (MPRandomBytes)
+ (NSData *)dataWithRandomBytes:(NSUInteger)length {
unsigned char *bytes = malloc(sizeof(unsigned char) * length);
SecRandomCopyBytes(kSecRandomDefault, length, bytes);
return [NSData dataWithBytesNoCopy:bytes length:length freeWhenDone:YES];
}
@end

View File

@@ -7,7 +7,7 @@
//
#import "NSString+MPPasswordCreation.h"
#import "NSData+MPRandomBytes.h"
#import "NSData+Random.h"
NSString *const kMPLowercaseLetterCharacters = @"abcdefghijklmnopqrstuvw";
NSString *const kMPNumberCharacters = @"1234567890";