FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSACommonCrypto.h
Go to the documentation of this file.
1 //
2 // NSACommonCrypto.h
3 // FoundationExtension
4 //
5 // Created by Jeong YunWon on 13. 1. 16..
6 // Copyright (c) 2013 youknowone.org. All rights reserved.
7 //
8 
14 #ifndef __CCOptions
15  #define CCOptions uint32_t
16 #endif
17 
25 
30 - (NSData *)encryptedAES128DataWithKey:(NSData *)key;
31 - (NSData *)encryptedAES256DataWithKey:(NSData *)key;
32 - (NSData *)encrypted3DESDataWithKey:(NSData *)key;
33 
35 
36 - (NSData *)encryptedAES128DataWithKey:(NSData *)key options:(CCOptions)options;
37 - (NSData *)encryptedAES192DataWithKey:(NSData *)key options:(CCOptions)options;
38 - (NSData *)encryptedAES256DataWithKey:(NSData *)key options:(CCOptions)options;
39 - (NSData *)encryptedDESDataWithKey:(NSData *)key options:(CCOptions)options;
40 - (NSData *)encrypted3DESDataWithKey:(NSData *)key options:(CCOptions)options;
41 - (NSData *)encryptedCastDataWithKey:(NSData *)key options:(CCOptions)options;
42 - (NSData *)encryptedRC2DataWithKey:(NSData *)key options:(CCOptions)options;
43 - (NSData *)encryptedRC4DataWithKey:(NSData *)key options:(CCOptions)options;
44 #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
45 - (NSData *)encryptedBlowfishDataWithKey:(NSData *)key options:(CCOptions)options;
46 #endif
47 
53 - (NSData *)decryptedAES128DataWithKey:(NSData *)key;
54 - (NSData *)decryptedAES256DataWithKey:(NSData *)key;
55 - (NSData *)decrypted3DESDataWithKey:(NSData *)key;
56 
58 
59 - (NSData *)decryptedAES128DataWithKey:(NSData *)key options:(CCOptions)options;
60 - (NSData *)decryptedAES192DataWithKey:(NSData *)key options:(CCOptions)options;
61 - (NSData *)decryptedAES256DataWithKey:(NSData *)key options:(CCOptions)options;
62 - (NSData *)decryptedDESDataWithKey:(NSData *)key options:(CCOptions)options;
63 - (NSData *)decrypted3DESDataWithKey:(NSData *)key options:(CCOptions)options;
64 - (NSData *)decryptedCastDataWithKey:(NSData *)key options:(CCOptions)options;
65 - (NSData *)decryptedRC2DataWithKey:(NSData *)key options:(CCOptions)options;
66 #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
67 - (NSData *)decryptedBlowfishDataWithKey:(NSData *)key options:(CCOptions)options;
68 #endif
69 
70 @end
71 
76 
77 - (NSData *)encryptedAES128DataWithKey:(NSString *)key;
78 - (NSData *)encryptedAES256DataWithKey:(NSString *)key;
79 - (NSData *)encrypted3DESDataWithKey:(NSString *)key;
80 
81 @end
82 
83 
88 
89 - (NSString *)decryptedAES128StringWithKey:(NSString *)key;
90 - (NSString *)decryptedAES256StringWithKey:(NSString *)key;
91 - (NSString *)decrypted3DESStringWithKey:(NSString *)key;
92 
93 @end
94 
CommonCryptor NSString to NSData encryption shortcuts.
Definition: NSACommonCrypto.h:75
CommonCryptor NSData to NSString decryption shortcuts.
Definition: NSACommonCrypto.h:87
CommonCryptor wrapper.
Definition: NSACommonCrypto.h:24
#define CCOptions
Definition: NSACommonCrypto.h:15