MD5 Hash - ParkinT/RubyMotion_Life GitHub Wiki

There is a cocoapod spec for this Use motion-cocoapods gem and add following lines to your Rakefile:

require 'motion-cocoapods'

Motion::Project::App.setup do |app|
  # skipped ...
  app.pods do
    pod 'NSData+MD5Digest'
  end
end

Then you can do following:

text.to_data.MD5HexDigest