MD5 security is fine? [closed]

For storing passwords no fast hash function which include md5 and SHA1/2 (even when salted) is acceptable. You need to use a slow hash, typically in the form of a Key-Derivation-Function to slow down brute-force. PBKDF2 and bcrypt are popular choices. You should also use a random per user salt.

joomla password encryption

Joomla passwords are MD5 hashed, but the passwords are salted before being hashed. They are stored in the database as {hash}:{salt} this salt is a random string 32 characters in length. So to create a new password hash you would do md5($password.$salt) EDIT Okay so for checking a password, say a user myguy enters the … Read more

Get the MD5 hash of big files in Python

You need to read the file in chunks of suitable size: def md5_for_file(f, block_size=2**20): md5 = hashlib.md5() while True: data = f.read(block_size) if not data: break md5.update(data) return md5.digest() Note: Make sure you open your file with the ‘rb’ to the open – otherwise you will get the wrong result. So to do the whole … Read more

MD5 hashing in Android

Here is an implementation you can use (updated to use more up to date Java conventions – for:each loop, StringBuilder instead of StringBuffer): public static String md5(final String s) { final String MD5 = “MD5”; try { // Create MD5 Hash MessageDigest digest = java.security.MessageDigest .getInstance(MD5); digest.update(s.getBytes()); byte messageDigest[] = digest.digest(); // Create Hex String … Read more