salt and hash in plain C or C++,
Members - Reputation: 1173
Posted 21 September 2012 - 07:21 PM
http://support.cloudant.com/customer/portal/articles/359311-users-authorization-on-cloudant but from C++ (on Android and Windows) I can't run those commands that they show.
Moderators - Reputation: 10343
Posted 21 September 2012 - 07:42 PM
The command they use to generate a salt is basically just a high quality random number generator (which is included in Crypto++ if your OS supports something like the crypto random number service or /dev/random.)
The command they use for hashing the key just shows that they use the hex encoding of the sha1 hash of the password, which is a medium-strength hash function (well supported in Crypto++.)