Questions tagged as 'hash'

1
answer

Problem with hashlib

I have a problem with using 'hashlib' from python, since I'm comparing the hashes generated with the line below, with the hashes generated on the site: ' link ', but when comparing the results I see they are different. Code used to generate...
asked by 06.09.2017 / 19:50
2
answers

Problem with infinite loop RandomAccessFile

I am using this code to read a text file using RandomAccessFile , character by character, and generating a string for each word formed, to save in a HashMap. I need to use RandomAccessFile because I need to know the position of the...
asked by 18.08.2017 / 04:58
1
answer

Arduino Hash Function

I'm doing a project where I need to randomly generate Hash numbers. The code has to work as follows. A random function generates a random number, these numbers are concatenated with a String to then generate the Hash o...
asked by 28.12.2016 / 15:35
0
answers

How to calculate the hash value of a specific byte array

How do I calculate the hash value of a specific byte array? I'm using MD5 encryption and the code to calculate what I'm using is this: byte[] dataRegCodeToCompare = md5.digest(toHash); The variable toHash is the byte array...
asked by 10.04.2015 / 21:45
2
answers

Error using methods to generate hash and paste MAC address

According to this my question , in the Cigano's response to the hash of the mac address of the network card, just use two methods. But how to use them to retrieve the data and do the verification I'm having an error:    A field initia...
asked by 25.11.2014 / 23:23
1
answer

What are the differences between map implementation by hashes or trees?

What is the advantage of mapping hash instead of the binary tree?     
asked by 11.07.2018 / 14:17
1
answer

Convert hash arrays

I'm giving some maintenance on a perl system (language that I'm noob) and I needed to create a new report module where I need to solve the following situation: I have 2 arrays with the following formats @head = ("nomeinstituicao", "cnpjinst...
asked by 28.07.2018 / 00:18
1
answer

Hash from some CakePHP2 field

I created some tables with scaffold of CakePHP2, I have a model called account and I created a setter and getter: public function setPassword($password) { $this->password = Security::encrypt($password); } public function getpass...
asked by 26.06.2018 / 16:23
1
answer

Hash function in java [closed]

Could anyone show me (and explain) a hash function (scatter function) other than the one of division? (key% size)? I wish it was a simple (and there is). In case I have a table of 11 positions that should calclar from the number of the cpf its i...
asked by 12.06.2017 / 03:03
1
answer

Encrypt passwords

I need to generate a default password for users of my login table. The password must be the same for all users for first access to the system. The registration already exists, but I have to modify the passwords. The problem happens when I upda...
asked by 02.06.2016 / 18:15