NSString+AES.h
593 Bytes
//
// NSString+AES.h
//
//
// Created by Bear on 16/11/26.
// Copyright © 2016年 Bear. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (AES)
/**< 加密方法 */
- (NSString*)aci_encryptWithAES;
/**< 解密方法 */
- (NSString*)aci_decryptWithAES;
/**< 加密方法 */
- (NSString*)aci_encryptWithAESWithKey:(NSString *)key;
/**< 解密方法 */
- (NSString*)aci_decryptWithAESWithKey:(NSString *)key;
/**< GTMBase64编码 */
- (NSString*)encodeBase64Data:(NSData *)data;
/**< GTMBase64解码 */
- (NSData*)decodeBase64Data:(NSData *)data;
@end