Latest 1.1.0
License MIT
Platforms ios 6.0, osx 10.7, requires ARC


This is an extremely simple NSString category that creates an MD5 digest from a given NSString. The logic to do this came straight from these StackOverflow questions so you can easily implement it on your own if you would like.


It’s quite simple:

NSString *digest = [someString MD5Digest];


Using CocoaPods:

pod 'MD5Digest'

Otherwise just include NSString+MD5.{h,m} in your project.


I wrote a quick Ruby script to test that the digest produced by this class extension matched that produced by Ruby’s built in methods (not that they couldn’t mess up, it’s just much less likely). Run it with ruby test.rb. If you change the name in the project to something else, in order to test it you’ll have to change it in the Ruby script as well.

Latest podspec

    "name": "MD5Digest",
    "version": "1.1.0",
    "summary": "An Objective-C NSString category for MD5 hex digests.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Keith Smiley": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1.0"
    "source_files": "NSString+MD5.{h,m}",
    "requires_arc": true,
    "platforms": {
        "ios": "6.0",
        "osx": "10.7"

Pin It on Pinterest

Share This