123456789101112131415161718 |
- #import <Foundation/Foundation.h>
- #import <CommonCrypto/CommonDigest.h>
- @interface WXUtil :NSObject <NSXMLParserDelegate>
- {
- }
- /*
- 加密实现MD5和SHA1
- */
- +(NSString *) md5:(NSString *)str;
- +(NSString*) sha1:(NSString *)str;
- /**
- 实现http GET/POST 解析返回的json数据
- */
- +(NSData *) httpSend:(NSString *)url method:(NSString *)method data:(NSString *)data;
- @end
|