Skip to content

An Objective-C NSString category for MD5 hex digests

License

Notifications You must be signed in to change notification settings

keith/MD5Digest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MD5Digest

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.

Usage

It's quite simple:

NSString *digest = [someString MD5Digest];

Installation

Using CocoaPods:

pod 'MD5Digest'

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

Testing

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.

About

An Objective-C NSString category for MD5 hex digests

Resources

License

Stars

Watchers

Forks

Packages

No packages published