7 Replies Latest reply on Jan 16, 2013 11:57 PM by Gerbrand Stap

    MD5 hashing

    Gerbrand Stap

      For password verification I try to create a MD5 hash from a string. This works on the simulator by adding

      - require 'digest/md5'

      and calling the function

      - Digest::MD5.hexdigest( password )


      But when this is deployed to an Android device, I get the error that the constant 'MyController::Digest' is not initialized.

      I also tried to change the require to just 'digest'. This also works on the simulator, but results in the error that the file 'digest' can not be loaded on the Android device.


      Is the digest/md5 not available on an android device?


      I can not change to another hashing algorithm, because I must compare the hash to hashes in an existing database.