Latest 0.1.2
Homepage https://github.com/liguoliangiOS/ZZCryptManager
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

ZZCryptManager is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ZZCryptManager'

Use

///aes加密
    ZZCryptManager.zz_aesEncrypt("13233258888", key, iv)

///aes解密
    ZZCryptManager.zz_aesDecrypt("X/A+jXMnFGS81LZjC7XTmw==", key, iv)

///rsa加密
    let str = "Rsaencrypt"
    ZZCryptManager.zz_rsaEncrypt(str, publicKey)

    encryptData 需要解密的字符串
    let encryptData = "NlqltiOIfIIl44sKSxaYfgPwficlpDYxUWUc4/wqrlvUYKltZ"
    ZZCryptManager.zz_rsaDecrypt(encryptData, privateKey)

    ///签名
    str 需要签名的数据
    ZZCryptManager.zz_rsaSignWithSHA1(str, privateKey)

    ///验签
    str 需要比对的数据
    siginStr 签名过的字符串
    let siginStr = "bO8Ru4+UJceJKPzPmTMH4okKr2Yc5FRuLFzwS9VMnnp"

    ZZCryptManager.zz_rsaSignVerifyWithSHA1(str, siginStr, publicKey)

Author

liguoliang

License

ZZCryptManager is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ZZCryptManager",
    "version": "0.1.2",
    "summary": "ZZCryptManager.",
    "description": "'u65b9u4fbfu52a0u89e3u5bc6u4f7fu7528u7684u5e93ZZCryptManager'",
    "homepage": "https://github.com/liguoliangiOS/ZZCryptManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "liguoliang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/liguoliangiOS/ZZCryptManager.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "swift_versions": "5.0",
    "source_files": "ZZCryptManager/Classes/**/*"
}

Pin It on Pinterest

Share This