您的位置:首页 > 移动开发 > IOS开发

iOS SDK计算SHA1和MD5

2015-01-27 10:02 288 查看
How to get md5 and SHA1 in objective c (iOS sdk)Calculating the md5 and sha1 hash in iOS sdk is pretty simple -
Step 1 – The very first thing you need to do is import CommonCrypto’s CommonDigest.h

?
戴维营教育代码
Step 2 – Here is the real code for calculating SHA1 and MD5 hash -
SHA1 -

?
戴维营教育代码
MD5 -
?
戴维营教育代码
Hope it will help someone!!

via:
http://www.makebetterthings.com/ ... bjective-c-ios-sdk/


收藏0

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: