key file to database file mapping now hash the database url to obscure the mapping

This commit is contained in:
michael starke
2016-02-05 16:44:37 +01:00
parent b0e68e8257
commit cc97b328be
5 changed files with 82 additions and 2 deletions

17
MacPass/NSString+MPHash.h Normal file
View File

@@ -0,0 +1,17 @@
//
// NSString+MPHash.h
// MacPass
//
// Created by Michael Starke on 05/02/16.
// Copyright © 2016 HicknHack Software GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (MPHash)
@property (copy, readonly, nonatomic) NSString *sha1HexDigest;
+ (NSString *)sha1HexDigest:(NSString*)input;
@end