Latest 1.0.0
Homepage https://github.com/Wzxhaha/WZXSSL
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

License
CocoaPods

字符串快速加密的工具类,目前支持MD5(16、32)、Sha1、base64

如何使用

#import "NSString+WZXSSLTool.h"

NSString * str = @"wzx";
NSLog(@"32MD5:%@",[str do32MD5]);
NSLog(@"16MD5:%@",[str do16MD5]);
NSLog(@"Twice32MD5:%@",[[str do32MD5] do32MD5]);
NSLog(@"Twice16MD5:%@",[[str do16MD5] do16MD5]);
NSLog(@"Sha1:%@",[str doSha1]);
NSLog(@"Base64:%@",[str doBase64]);

你可以任意组合进行混合加密。

输出:

2016-03-30 16:03:53.523 WZXSSLTool[74550:707925] 32MD5:ece44bfb7451c6c1abd33fabed0cc93d
2016-03-30 16:03:53.523 WZXSSLTool[74550:707925] 16MD5:7451c6c1abd33fab
2016-03-30 16:03:53.524 WZXSSLTool[74550:707925] Twice32MD5:a02ac2f5a1a6f15eed29ccf9268a1599
2016-03-30 16:03:53.524 WZXSSLTool[74550:707925] Twice16MD5:f525548c58ee7420
2016-03-30 16:03:53.524 WZXSSLTool[74550:707925] Sha1:801de8dea9c626136f4c64036aa30fc59b842880
2016-03-30 16:03:53.524 WZXSSLTool[74550:707925] Base64:d3p4

Latest podspec

{
    "name": "WZXSSL",
    "version": "1.0.0",
    "license": "MIT",
    "summary": "Fast encryption string used on iOS, which implement by Objective-C.",
    "homepage": "https://github.com/Wzxhaha/WZXSSL",
    "authors": {
        "WzxJiang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Wzxhaha/WZXSSL.git",
        "tag": "1.0.0"
    },
    "requires_arc": true,
    "description": "Fast encryption string, the current support for MD5 (16, 32), Sha1, Base64",
    "source_files": "WZXSSLTool/*",
    "platforms": {
        "ios": "7.0"
    },
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This