« Join us at the Europe… | Home | FileMaker Developer M… »

Argon2 password hashing for Xojo

We got a new class to calculate password hashes using argon2 algorithm. Here is an example snippet for using our new Argon2MBS class:

dim a as new Argon2MBS a.OutputLength = 24 a.Password = "password" a.Salt = "somesalt" a.cost = 2 a.MemoryCost = 65536 // 64 Megabytes a.Lanes = 4 a.Threads = 4 dim hash as string = a.Calc(a.kTypeI) dim t as string = EncodeHex(hash) if t = "45d7ac72e76f242b20b77b9bf9bf9d5915894e669a24e6c6" then // ok else Break // failed end if

For more details, please check github page: github.com/p-h-c/phc-winner-argon2
31 08 16 - 16:04
No comments

Remember personal info?

Emoticons / Textile

Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.