Latest 1.0.1
Homepage https://github.com/QianChia/QHashString
License MIT
Platforms ios 7.0, requires ARC
Authors

Logo

  • The extension method for NSString Hash.
  • The NSString category for MD5, SHA1, SHA256, SHA512 Hash, and hashes of files with small memory usage

GitHub:QianChia | Blog:QianChia(Chinese)


Installation

From CocoaPods

  • pod 'QHashString'

Manually

  • Drag all source files under floder QHashString to your project.
  • Import the main header file:#import "QHashString.h"

Examples

NSString hash methods

  • [string q_md5String]
  • [string q_sha1String]
  • [string q_sha224String]
  • [string q_sha256String]
  • [string q_sha384String]
  • [string q_sha512String]

HMAC hash methods

  • [string q_hmacMD5StringWithKey:key]
  • [string q_hmacSHA1StringWithKey:key]
  • [string q_hmacSHA256StringWithKey:key]
  • [string q_hmacSHA256StringWithKey:key]

TIME HMAC hash methods

  • [string q_timeMD5StringWithKey:key]

File hash methods

  • [filePath q_fileMD5Hash]
  • [filePath q_fileSHA1Hash]
  • [filePath q_fileSHA256Hash]
  • [filePath q_fileSHA512Hash]

Latest podspec

{
    "name": "QHashString",
    "version": "1.0.1",
    "platforms": {
        "ios": "7.0"
    },
    "license": "MIT",
    "homepage": "https://github.com/QianChia/QHashString",
    "authors": {
        "QianChia": "[email protected]"
    },
    "summary": "The extension method for NSString Hash",
    "source": {
        "git": "https://github.com/QianChia/QHashString.git",
        "tag": "1.0.1"
    },
    "source_files": "QHashString",
    "requires_arc": true
}

Pin It on Pinterest

Share This