title: No bcrypt implementation in iOS... can use other language, create static library?
body: <p>There is no straight forward bCrypt ( <a href="http://codahale.com/how-to-safely-store-a-password/" rel="nofollow">http://codahale.com/how-to-safely-store-a-password/</a>) implementation in Objective-C, and while there are C code that does accomplish this, it's specifically for x86 processors, relying on BSD libraries.</p>
  
  <p>I'm building an iOS app which shares the same password hashes as corresponding Online (.NET and HTML5+Javascript) applications.</p>
  
  <p>I'm not quite where I ought to be, where I can read the awfully simplistic Java code ( <a href="http://www.mindrot.org/projects/jBCrypt/" rel="nofollow">http://www.mindrot.org/projects/jBCrypt/</a>) and translate it to Objective-C code, suitable for iOS development.</p>
  
  <p>However, there is a Ruby implementation ( <a href="https://github.com/codahale/bcrypt-ruby" rel="nofollow">https://github.com/codahale/bcrypt-ruby</a>), and I've heard that you can use Ruby to build iOS applications. Could I then roll the Ruby code up into a Static Library, and link it to my iOS projects? Or, even use Mono and utilize the .NET implementation (also a clean, pure-code, no-dependency project) to build a Static Library?</p>
  
  <p>Or, finally, does anyone know of an Objective-C implementation of the bCrypt code? It seems simple enough, I just don't know enough about .NET/C#/Ruby to translate it myself.</p>