Questions tagged as 'hash'

3
answers

What should I observe when creating a hash code?

Still talking about answer about hash code it was not clear what should be observed to produce good hash codes . I understand that it needs to be a number that does not generate a lot of repetition, but is this enough?     
asked by 22.03.2017 / 13:16
2
answers

How to calculate hash?

How do I calculate the hash of a torrent file with PHP? I already used the class BEncoded and it worked, but wanted to know how it works.     
asked by 16.12.2014 / 21:15
1
answer

How to convert Python encryption to PHP?

I would like to know if it is possible to convert this encryption to the PHP language, I need to convert the passwords that were generated to be accepted in my Login system on the site, but I do not know how to do it. I have a database with p...
asked by 10.08.2017 / 14:19
3
answers

How does php guarantee a single session_id?

What algorithm is used to guarantee a single session_id() ? I would like to know how to create and verify to ensure that such an ID does not collide with an existing one? I need to create some hashes , but I'm afraid that one hour two...
asked by 04.04.2015 / 19:45
1
answer

Why does String hashCode () in Java use 31 as a multiplier?

In Java, the hash code for an object String is computed as s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] using integer arithmetic, where s[i] is the i -th character of the string, n is the length of the string,...
asked by 02.01.2019 / 17:54
1
answer

Is it possible to use MD6 in C #?

hash , is it possible to use MD6 in C #? Would anyone have an example of the use in a simple string ? In my searches I did not find anything very objective.     
asked by 16.09.2015 / 22:40
2
answers

Can Hashes be different for the same bytes?

I found a flaw or I'm not sure how to deal with hashes . I have two random arrays , one generated by one algorithm and one original. I'm trying to make the algorithm look EXACTLY the same as the original. I visually managed, with the same byte...
asked by 13.01.2018 / 05:27
2
answers

What is the difference between Encoding, Encryption and Hashing?

I would like to understand the difference between Encoding , Encryption and Hashing and also examples of when using one or the other.     
asked by 27.05.2015 / 17:49
2
answers

Interpret and direct with URL that after domain contains a hash

I am creating a rule to interpret addresses that after domain begin with # followed by numbers or followed by letters whose rule should only be read if there is no file or directory that matches the path indicated: # Rewrite the url <...
asked by 13.03.2014 / 12:37
1
answer

What is the hash generation algorithm that Laravel uses?

By default Laravel already comes with a pre-ready authentication system, however, someone would know to tell me what the default algorithm this framework uses for hash and what version thereof?     
asked by 01.03.2017 / 14:04