Top "Hash" questions

A hash function is any well-defined procedure or mathematical function that converts a large amount of data into a small datum, usually a single integer.

What is the best way to create a random hash/string?

What is the best way of generating a hash for the purpose of storing a session? I am looking for …

php session hash md5
PHP short hash like URL-shortening websites

I am looking for a PHP function that creates a short hash out of a string or a file, similar …

php hash
Best way to generate random file names in Python

In Python, what is a good, or the best way to generate some random text to prepend to a file(…

python random hash
How to hash a string in Android?

I am working on an Android app and have a couple strings that I would like to encrypt before sending …

java android hash cryptography
Choosing between std::map and std::unordered_map

Now that std has a real hash map in unordered_map, why (or when) would I still want to use …

c++ c++11 hash map unordered-map
Hashing arrays in Python

Is it possible to hash lists? For example, I know that hashes of tuples are possible: >>> hash((1,2,3,4,5,6)) …

python arrays hash
Fastest hash for non-cryptographic uses?

I'm essentially preparing phrases to be put into the database, they may be malformed so I want to store a …

php database security hash
Fast String Hashing Algorithm with low collision rates with 32 bit integer

I have lots of unrelated named things that I'd like to do quick searches against. An "aardvark" is always an "…

c++ algorithm string hash
Is it worth hashing passwords on the client side

When I want to put a login system in place, I always compare the MD5 of the given password with …

passwords client-side hash