Hi,
I am wondering if it is possible to generate a "key" that is valid for a period of (approximately) three months?
For example, let's say (hypothetically) that I generate a key like this (pseudocode):
Key = HASH ( MachineID, Salt );
And the way I verify a key is valid is to check like this:
isValid(Key)
{
return Key == HASH ( ...
I am trying to calculate md5 hash of a http reqest before sending it to server. For this I have to get the http request first. can any body help me?
...
I want to iterate through a reference to an array of hashes without having to make local copies, but I keep getting Can't use string ("1") as an ARRAY ref while "strict refs" errors. Why? How do I fix it?
sub hasGoodCar {
my @garage = (
{
model => "BMW",
year => 1999
...
What is Ruby's hash function algorithm?
...
I have a torrent hash from the magnet link. For example: fda164e7af470f83ea699a529845a9353cc26576
When I try to get information about leechers and peers I should request: http://tracker.publicbt.com/scrape?info_hash=???
How should I convert info hash for this request? Is it url encoding or becoding? how? In PHP.
...
What is best for storing passwords? Should I be Encrypting or hashing password for you users table ?
What do you prefer, and why? Could you please provide an example of secure password storage.
...
I don't have much programming experience. But to me, Struct seems somewhat similar to Hash.
What tasks does Struct do very good?
Is there anything Struct can do, but Hash cannot do?
After googling, the concept of Struct is important in C, but I don't know much about C.
...
Given this object is SELECT input which name = "record[exp_items][1279485786799][batch]" and I want to find all fields in "record[exp_items][1279485786799]" artificial hash and serialize them.
Keep in mind that 1279485786799, exp_items always change, so I need either move to one level up in hash and serialize it or find all these objec...
I've written a script that reads through all files in a directory and returns md5 hash for each file. However, it renders nothing for a rather large file. I assume that the interpreter has some value set for maximum processing time, and since it takes too long to get this value, it just skips along to other files. Is there anyway to g...
Does there exist a native Python implementation of the Jenkins hash algorithm(s)?
I need a hash algorithm that takes an arbitrary string and turns it into an 32-bit integer. For a given string, it must guarantee to return the same integer across platforms.
I have looked at the ELF hash algorithm, of which I have found a Python implemen...
I want to convert my XML document to Hash in Ruby/Rails. Actually, the default conversion by Hash.from_xml in Rails works for me except in one case.
I have a list of items contained in <item-list> element, these items can be of different types though. For instance, standard-item and special-item, each of which has different set of child...
Hi, I need to send to a server in POST an email (String) and a password (MD5 hash in byte[]).
Below how I get my MD5 hash where "password" is a String (what the user enter):
byte[] passMD5 = Crypto.encodeStringMD5(password);
And the function:
public static byte[] encodeStringMD5(String s) throws Exception {
byte[] bytes = s.getB...
I notice starange Black and white images on many sites like on http://code.google.com/p/jquery-simpletip/downloads/detail?name=jquery.simpletip-1.3.1.pack.js&can=2&q=. Can anyone tell me their use?
...
What is the shortest amount of code to modify a hash within a hash in the following instances:
%hash{'a'} = { 1 => one,
2 => two };
(1) Add a new key to the inner hash of 'a' (ex: c => 4 in the inner hash of 'a')
(2) Changing a value in the inner hash (ex: change the value of 1 to 'ONE')
...
Hi perl-warriors,
I have a hash with about 130,000 elements, and I am trying to check all combinations within that hash for something (130,000 x 130,000 combinations). My code looks like this:
foreach $key1 (keys %CNV)
{
foreach $key2 (keys %CNV)
{
if (blablabla){do something that doesn't take as long}
}
}
As you ...
hello,
i.g. we have next hash
ahash = {"one": [1,2,3], "two": [4,5,6]}
is there any function, which returns me value of the first key in hash? (i don't know key name, i just want to get value of first key).
thanks
...
I'm syncing users from an external system into ours. I need to set the user's password in our Active Directory.
I am only provided SHA1's of the external user's passwords and setPassword will hash whatever I is input.
Is setting the User's unicodePwd the actual hash field?
If so, can I just set it to the provided hash?
If not, how/...
Hi,
I have 1 GB file of tables with data separated by columns. I have parsed it and stored in hash.
Later on I am using this hash for my further work. But during developing my code each time I compile for testing the " parsing and storing into hash" is executed and which makes my program slow.
Is there any way where I can store it so ...
Long time reader, first time poster. And I start with quite a cryptic one!
What I'm seeking to do is encrypt a string with the SHA-256 algorithm, and hash it with a key.
I discovered someone had done some excellent work in creating an algorithm for "normal" SHA-2 encryption as a stored function at: http://blog.darkrainfall.org/sha-256-...
I have an array and I am making a hash instance from it.
For instance, if array is:
@folders=(temp,usr,bin);
then i want to fill in hash:
$the_path{$folders[0]}{$folders[1]}{$folders[2]}="somevalue";
But if the array is only:
@folders=(bin);
then i want the path to be:
$the_path{$folders[0]}="somevalue";
The problem is I don...