Coffeescript version of PBKDF2