iOS-MD5算法
来源:互联网 发布:淘宝模特拍摄 编辑:程序博客网 时间:2024/06/06 13:08
MD5算法,代码示例如下:
导入头文件:
#import <CommonCrypto/CommonDigest.h>
MD5代码如下:
+ (NSString *)md5:(NSString *)inputString{ const char *cStr = [inputString UTF8String]; unsigned char result[CC_MD5_DIGEST_LENGTH]; CC_MD5(cStr, (unsigned int)strlen(cStr), result); return [[NSString stringWithFormat:@"%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X%02X", result[0], result[1], result[2], result[3], result[4], result[5], result[6], result[7], result[8], result[9], result[10], result[11], result[12], result[13], result[14], result[15] ] lowercaseString];}
0 0
- iOS MD5 算法
- iOS MD5算法加密
- iOS-MD5算法
- iOS MD5 和 Base64 算法
- IOS md5
- iOS MD5
- IOS MD5
- iOS MD5
- MD5算法
- MD5 算法
- MD5算法
- MD5 算法
- MD5算法
- MD5算法
- MD5算法
- md5 算法
- MD5算法
- MD5算法
- iOS UIWebView键盘处理
- php 会话管理(SESSION管理)
- SlickEdit2013 linux 下的安装方法,以及g++的安装
- Retrofit2 + OkHttp3下统一设置Http请求的Headers
- Android UiAutomator环境配置与编译运行
- iOS-MD5算法
- ImageMagick简介
- Block的使用与实现原理
- JSON知识回顾
- github clone 代码到本地全步骤
- 【源码解读】Handler消息机制流程分析
- mysql索引最左匹配原则的理解
- Oracle数据库(四)多行函数
- PostgreSQL学习手册(八) 性能提升技巧 使用EXPLAIN