//
//  EnercryTool.h
//  Open
//
//  Created by gao on 2016/11/17.
//  Copyright © 2016年 黄江涛 . All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonCryptor.h>
#import "GTMBase64.h"
#import <UIKit/UIKit.h>
@interface EnercryTool : NSObject
+(instancetype)init;
//AES代码加密工具
+(NSString *)A:(NSString *)jiamiName;

+(NSString*)desA:(NSString*)jianName;


//MD5代码解密工具
+(NSString*) decryptUseDES:(NSString*)cipherText key:(NSString*)key;
//MD5代码加密
+(NSString *) encryptUseDES:(NSString *)clearText key:(NSString *)key;
//Base64加密
+(NSString *)encryptBase64:(NSData *)imageData;
+ (UIImage *)image:(UIImage *)image rotation:(UIImageOrientation)orientation;


//AES代码加密工具
+(NSString *)AES256Encrypt:(NSString *)plainText key:(NSString *)key;
//AES代码解密工具
+(NSString *)AES256Decrypt:(NSString *)plainText key:(NSString *)key;

//AES128代码加密工具
+(NSString *)AES128Encrypt:(NSString *)plainText key:(NSString *)key;

//AES128代码解密工具
+(NSString *)AES128Decrypt:(NSString *)plainText key:(NSString *)key;

@end
