Hash and salt passwords in C#

Actually this is kind of strange, with the string conversions – which the membership provider does to put them into config files. Hashes and salts are binary blobs, you don’t need to convert them to strings unless you want to put them into text files. In my book, Beginning ASP.NET Security, (oh finally, an excuse … Read more

php mysqli_connect: authentication method unknown to the client [caching_sha2_password]

I solve this by SQL command: ALTER USER ‘mysqlUsername’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘mysqlUsernamePassword’; which is referenced by https://dev.mysql.com/doc/refman/8.0/en/alter-user.html if you are creating new user CREATE USER ‘jeffrey’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘password’; which is referenced by https://dev.mysql.com/doc/refman/8.0/en/create-user.html this works for me

Difference between Hashing a Password and Encrypting it

Hashing is a one way function (well, a mapping). It’s irreversible, you apply the secure hash algorithm and you cannot get the original string back. The most you can do is to generate what’s called “a collision”, that is, finding a different string that provides the same hash. Cryptographically secure hash algorithms are designed to … Read more

Generate a Hash from string in Javascript

String.prototype.hashCode = function() { var hash = 0, i, chr; if (this.length === 0) return hash; for (i = 0; i < this.length; i++) { chr = this.charCodeAt(i); hash = ((hash << 5) – hash) + chr; hash |= 0; // Convert to 32bit integer } return hash; }; Source: http://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/