WXUtil.h 375 B

123456789101112131415161718
  1. #import <Foundation/Foundation.h>
  2. #import <CommonCrypto/CommonDigest.h>
  3. @interface WXUtil :NSObject <NSXMLParserDelegate>
  4. {
  5. }
  6. /*
  7. 加密实现MD5和SHA1
  8. */
  9. +(NSString *) md5:(NSString *)str;
  10. +(NSString*) sha1:(NSString *)str;
  11. /**
  12. 实现http GET/POST 解析返回的json数据
  13. */
  14. +(NSData *) httpSend:(NSString *)url method:(NSString *)method data:(NSString *)data;
  15. @end