mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-24 09:59:43 +00:00
Removed obsolete category since it's transferred to MiniKeePassLib
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -7,7 +7,7 @@
|
||||
//
|
||||
|
||||
#import "NSString+MPPasswordCreation.h"
|
||||
#import "NSData+MPRandomBytes.h"
|
||||
#import "NSData+Random.h"
|
||||
|
||||
NSString *const kMPLowercaseLetterCharacters = @"abcdefghijklmnopqrstuvw";
|
||||
NSString *const kMPNumberCharacters = @"1234567890";
|
||||
|
||||
Reference in New Issue
Block a user