FoundationExtension
FoundationExtension is common Foundation/UIKit/Cocoa shortcuts and snippets collection.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
NSData(CommonCryptor) Category Reference

CommonCryptor wrapper. More...

#import <NSACommonCrypto.h>

Instance Methods

Encryption Shortcut

These shortcuts use default option as kCCOptionPKCS7Padding

(NSData *) - encryptedAES128DataWithKey:
 
(NSData *) - encryptedAES256DataWithKey:
 
(NSData *) - encrypted3DESDataWithKey:
 
Encryption
(NSData *) - encryptedAES128DataWithKey:options:
 
(NSData *) - encryptedAES192DataWithKey:options:
 
(NSData *) - encryptedAES256DataWithKey:options:
 
(NSData *) - encryptedDESDataWithKey:options:
 
(NSData *) - encrypted3DESDataWithKey:options:
 
(NSData *) - encryptedCastDataWithKey:options:
 
(NSData *) - encryptedRC2DataWithKey:options:
 
(NSData *) - encryptedRC4DataWithKey:options:
 
(NSData *) - encryptedBlowfishDataWithKey:options:
 
Decryption Shortcut

These shortcuts use default option as kCCOptionPKCS7Padding

(NSData *) - decryptedAES128DataWithKey:
 
(NSData *) - decryptedAES256DataWithKey:
 
(NSData *) - decrypted3DESDataWithKey:
 
Decryption
(NSData *) - decryptedAES128DataWithKey:options:
 
(NSData *) - decryptedAES192DataWithKey:options:
 
(NSData *) - decryptedAES256DataWithKey:options:
 
(NSData *) - decryptedDESDataWithKey:options:
 
(NSData *) - decrypted3DESDataWithKey:options:
 
(NSData *) - decryptedCastDataWithKey:options:
 
(NSData *) - decryptedRC2DataWithKey:options:
 
(NSData *) - decryptedBlowfishDataWithKey:options:
 

Detailed Description

CommonCryptor wrapper.

If key is shorter than required length, methods return nil. If key is longer than requried length, it is cut as required length.

Method Documentation

- (NSData *) decrypted3DESDataWithKey: (NSData *)  key
- (NSData *) decrypted3DESDataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) decryptedAES128DataWithKey: (NSData *)  key
- (NSData *) decryptedAES128DataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) decryptedAES192DataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) decryptedAES256DataWithKey: (NSData *)  key
- (NSData *) decryptedAES256DataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) decryptedBlowfishDataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) decryptedCastDataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) decryptedDESDataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) decryptedRC2DataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) encrypted3DESDataWithKey: (NSData *)  key
- (NSData *) encrypted3DESDataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) encryptedAES128DataWithKey: (NSData *)  key
- (NSData *) encryptedAES128DataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) encryptedAES192DataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) encryptedAES256DataWithKey: (NSData *)  key
- (NSData *) encryptedAES256DataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) encryptedBlowfishDataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) encryptedCastDataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) encryptedDESDataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) encryptedRC2DataWithKey: (NSData *)  key
options: (CCOptions options 
- (NSData *) encryptedRC4DataWithKey: (NSData *)  key
options: (CCOptions options 

The documentation for this category was generated from the following file: