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.

Algorithm Complexity & Security: MD5 or SHA1?

Which is the best overall hashing algorithm in terms of complexity and security? md5 or sha1? From what I know …

algorithm hash
Ruby on Rails: Submitting an array in a form

I have a model that has an attribute that is an Array. What's the proper way for me to populate …

ruby-on-rails arrays forms hash
How do I sort an array of hashes by a value in the hash?

This Ruby code is not behaving as I would expect: # create an array of hashes sort_me = [] sort_me.push({"…

ruby arrays sorting hash
Efficiently generate a 16-character, alphanumeric string

I'm looking for a very quick way to generate an alphanumeric unique id for a primary key in a table. …

python hash random
Hashing passwords with MD5 or sha-256 C#

I'm writing a register form for a application but still having problems with being new to c#. I am looking …

c# hash sha256
Random hash in Python

What is the easiest way to generate a random hash (MD5) in Python?

python hash md5
Ruby print hash key and value

I'm trying to print key : value Currently I keep getting errors when I try to run my codes. The code: …

ruby hash each
Equivalent of .try() for a hash to avoid "undefined method" errors on nil?

In Rails we can do the following in case a value doesn't exist to avoid an error: @myvar = @comment.try(:…

ruby-on-rails ruby ruby-on-rails-3 hash
How many random elements before MD5 produces collisions?

I've got an image library on Amazon S3. For each image, I md5 the source URL on my server plus …

random md5 hash
Hash : How does it work internally?

This might sound as an very vague question upfront but it is not. I have gone through Hash Function description …

java algorithm data-structures hash