How-to articles, tricks, and solutions about HASH

Good Hash Function for Strings

A good hash function for strings should have the following properties:

How can I generate an MD5 hash in Java?

To generate an MD5 hash in Java, you can use the MessageDigest class from the java.security package.

How to Use bcrypt to Hash Passwords in PHP

There is a password hashing technique, used for building the security of passwords. It is called bcrypt. Here, you will learn how to use it in PHP.

How to use sha256 in php5.3.0

In PHP 5.3.0, you can use the hash function to create a SHA-256 hash.

How to Use the mhash_keygen_s2k() Function in PHP

The aim of this snippet is to represent to you the PHP mhash_keygen_s2k() function. Read on and check out the example for better understanding.

Secure hash and salt for PHP passwords

To securely hash and salt passwords in PHP, you can use the password_hash function.