Questions tagged as 'hash'

1
answer

Error Signing Digital Signature - "unable to load Private Key"

To create a Digital Subscription you need:   - Private key.   - Public Key.   - HASH of the file to be signed. I'm using the following algorithm for the process: image1 http://maxicertificadodigital.com.br/images/sobre/03.png ima...
asked by 31.03.2015 / 15:51
2
answers

Python code using HMAC library

I'm doing a job on encryption for college using HMAC along with SHA256, and I would like to understand what this code does on each line, I'm a bit confused. #!/usr/bin/env python3 import hashlib import hmac from math import ceil hash_len = 32...
asked by 10.06.2018 / 18:02
0
answers

Send Hash in the e-mail and confirm on the form

I would like to make a system that works like this: For the student to confirm the proof of the test, he would have to receive a hash code in his email. If he did not know the code, he would have to put the code of the test and the secret answer...
asked by 31.10.2017 / 21:28
1
answer

Problem to select a specific object within a hash

Hello! Good Morning. I have the following situation: In my Ruby code, there is a flower class (attributes: code (generated by a function with auto increment), name , and category (this attribute also represents the hash key)). Each inst...
asked by 20.03.2017 / 15:02
1
answer

Hash table with quadratic method

I am implementing a hash table with quadratic exploration method. My question is regarding the 0 position of the vector used for table implementation. Here is the code below: public boolean inserir(Pessoa item) { int valorHash = hash(item....
asked by 08.02.2016 / 20:28
2
answers

How to apply password_hash for use of SELECT, INSERT and UPDATE?

I know password_hash works like this: string password_hash ( string $password , integer $algo [, array $options ] ) 1 - But I wanted to know how I can apply password_hash in these cases: $check = mysql_query("SELECT 'id' FROM 'da...
asked by 25.05.2014 / 01:51
4
answers

Is it okay to store the password in a public class variable?

I'm doing a small login system in PHP using the new functions of password_hash and password_verify . Is it a good practice to store the password in a public variable of the class? If it is not, is it recommended to use some other fa...
asked by 02.02.2014 / 18:44
2
answers

Which character types are generated by the password_hash () function?

The output that I noticed after some data was encrypted by the password_hash() function is around alphanumeric values and some special characters like $ . and / . Are there any more special characters besides these?   ...
asked by 11.02.2018 / 22:38
1
answer

Exercise with HashMap

I'm trying to do this exercise, I do not know where I'm going wrong. Can you help me? I need to create a map that has the key number of the characters in a city name and a value in a list with all names with that number of characters. You...
asked by 07.12.2017 / 19:25
1
answer

What is the likelihood of * hash * CRC32b being repeated?

What is the likelihood of hashing CRC32b being repeated? For example, two different strings return the same code: echo hash('crc32b', 'Teste');     
asked by 29.11.2017 / 19:43