Most voted "hash" questions
A hash function is any well-defined procedure or mathematical function that converts a large amount of data to a small data, usually a single integer. This tag should be used for more general hash questions; questions about hash classes should use the specific tag.
Learn more…123 questions
Sort by count of
-
2
votes1
answer417
viewsHash and Encryption Algorithms
I’m doing a paper on the difference between Hash and Cryptography. For me it’s easier to talk about Hash and cite examples since I usually use SHA1 and MD5, but talking about cryptography is…
-
2
votes2
answers578
viewsFunction to create hash in SRI pattern
I was looking at a new specification W3C SRI (Subresource Integrity) which roughly means Integrity of the Sub-resource that promises to bring more security to resources hosted on third-party servers…
-
2
votes1
answer108
viewsProblem 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, value and category(this at ributo…
-
2
votes1
answer116
viewsIs Sqlserver’s HASHBYTES() function cryptographically secure?
The company I work today she has much of the programming done in the database through procedures and was seeing how the creation of the hash of passwords and their persistence in the bank. I…
-
2
votes2
answers81
viewsWhat is it, Farmhash?
I recently discovered the FarmHash. Apparently, it is an implementation to hash some data. I was left with some doubts: It behaves in the same way as the most common hashes, such as md5 or sha? What…
hashasked 5 years, 4 months ago Luiz Felipe 32,886 -
2
votes1
answer84
viewsProblem with AVL tree vector
Good afternoon! I am making a hash table and for this I am trying to create an AVL tree vector. The problem is that when I try to insert a value in any tree of this vector is giving the exception…
-
2
votes1
answer61
viewsWhat’s wrong with these hash algorithms?
I’ve researched several hash algorithms, and found some examples on Soen, but they’re returning different hashes to the same file: import java.io.File; import java.io.FileInputStream; import…
-
2
votes1
answer1051
viewsCheck password hash on login (password_hash)
I made all the login code, but when I went to test, it gave error in the login, using the same password I used in the registration, when I realized that the password_hash always generates a…
-
2
votes2
answers902
viewsFunction Encode() and hash creation
I’m using Python 3.6 to make a program in which the person types an MD5 hash, then the program saves the hash in a variable, reads a txt file and plays the content inside a list, where each name…
-
1
votes4
answers574
viewsIs it okay to store the password in a public class variable?
I am making a small login system in PHP using the new functions of password_hash and password_verify. Is it good practice to store the password in a public class variable? If not, it is recommended…
-
1
votes1
answer129
viewsIs jBCrypt still safe?
I wonder if jBCrypt is outdated because it has not updated for two years https://github.com/josephw/jBCrypt If so, there would be a replacement for hashing and Salts for java?…
-
1
votes1
answer1293
viewsHow to verify an encrypted password during Login?
When I try to log in: if I use the wrong username and password, only the contents of the header and of footer. if I use the correct username and password, the login does not recognize the user:…
-
1
votes2
answers1206
views -
1
votes1
answer1552
viewsError checking Digital Signature - "Unable to load Private Key"
Creating a Digital Signature requires: - Private Key. - Public Key. - HASH of the file to be Signed. I’m using the following algorithm for the process: Source:…
-
1
votes1
answer105
viewsHASH is not working properly
Regardless of the password being right or not, the message is always returned saying that the password is invalid. make login.php <? include "connection.php"; require "blowfish.php"; $login =…
-
1
votes1
answer84
views -
1
votes1
answer515
viewsGroup hashes by Ruby value and manipulate them
I have this hashed array that I’ve simplified to get smaller. My goal is to join by marca of carros to make a small report showing how much that marca is making a profit based on compras. Notice…
-
1
votes0
answers657
viewsWhat is it and what do you do with each of these SHA-1, SHA-256, HASH, MD5 on a day-to-day basis?
What is and what is done with each of these SHA-1, SHA-256, HASH, MD5 on a day to day basis?
-
1
votes2
answers222
viewsWhat are the character types generated by the password_hash() function?
The output I noticed after some data was encrypted by the function password_hash() is around alphanumeric values and some special characters like $ . and /. There are more special characters than…
-
1
votes1
answer76
viewsDoubt about Null Byte in Bcrypt PHP
Well, I learned that PHP’s Bcrypt is vulnerable to Null Byte. What are the tests I have to do to see this vulnerability, and what are the conquencias of it??
-
1
votes2
answers55
viewsHow to compare hash coming from JSON on RAILS
Personal created a web service that today receives a registration and a password, it makes a select in the database and compares see if the registration and password are equal, if yes it shows some…
-
1
votes0
answers370
viewsHow to write and read a table hash in/from a file (FILE) in C?
I am using fread and fwrite but there is an error of execution. #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct pessoa{ char nome[20]; char cpf[10];…
-
1
votes1
answer150
viewsLogging in to Laravel password without hash
Good people! I took a very old system to make some "improvements", I used Laravel to develop a system that mainly uses the database of this system. The BIG problem is, the passwords saved in the…
-
1
votes1
answer110
viewsLogin with Play! framework
I am trying to create a login system on the system but I have the following problem: public Result salvaNovoUsuario() { Form<Usuario> formulario =…
-
1
votes3
answers500
viewsWhat’s $(this.hash) in jQuery for?
In the code below I came across the syntax $(this.hash): $('a').on('click', function(e) { e.preventDefault(); $(this.hash).show(); }); I got a little confused thinking it might be something related…
-
1
votes1
answer554
viewsProblem with reading python files
What is the difference between, make python open and read a file, to pass the read result between áspas? For when I open a file, it contains only the word test and I pass this reading result by a…
-
1
votes2
answers548
viewsHow to convert the hash() value of a string back to the original string?
I’m learning now about Hashing and discovered that Python has a function called hash() that returns the hash value of an object. The problem is, how can I convert this value to my original object,…
-
1
votes1
answer149
viewsSend Hash in the e-mail and confirm in the form
I would like to make a system that works like this: For the student to confirm the proof visa, he would have to receive a hash code in his email. If he doesn’t know the code, he would have to put…
-
1
votes0
answers379
viewsTake the bytes from the file and generate a hash
Guys I am reading a txt file as follows, as I would to save the bytes of the file and generate a hash sha-256 the class it generates I also already own the code, as I do for storing in an array of…
-
1
votes1
answer688
viewsExercise with Hashmap
I’m trying to do this exercise, I don’t know where I’m going wrong. Can you help me? I need to create a map that has the number of characters of a city name and by value in a list of all names with…
-
1
votes0
answers137
viewspassword_verify() PHP 5.5.12 Not working
I’m having trouble with password_verify (). A few days ago, the same password and hash worked perfectly. Today, password_verify returns false, but I know the password is correct. $senhaC =…
-
1
votes2
answers51
viewsHow to simplify the process of classifying a value-based hash
Oops, I’m new to the site, and I’m new to Ruby. My question is: Is there a more efficient way to classify a hash according to the values? I did the code below, but I’m sure it’s not the most…
-
1
votes1
answer2145
viewsHow does bcrypt work?
I don’t quite understand the workings of salt of bcrypt, in a javascript code (Node): const bcrypt = require('bcrypt'); const saltRounds = 10; async function init(plainPassword) { let salt = await…
-
1
votes1
answer120
views -
1
votes1
answer513
viewsHow to create a hash using the hashlib library using the "time.time()" method in Python3
Hello, I have the following situation: I have to create a hexdigest of a concatenation of 2 numbers transformed into a string. For this, I must use the library hashlib and the project must be in…
-
1
votes1
answer171
viewsPython Hashlib Function: Typeerror: update() takes in keyword Arguments
I am working on a script where in one of the steps I will have to use the function hashlib to convert one string list to another via SHA256. However, I’m having some problems that I haven’t been…
-
0
votes0
answers71
viewsHash Table for text word incidence
This problem was best illustrated here: Error in vector copy of structured type Summary: I am developing an index dictionary, which stores the incidence of a word of text (input) using a hash table…
-
0
votes1
answer337
viewsdebug.Keystore on Mac to generate hash
I need to generate the hash of my Mac to add on Facebook and be able to continue the application I’m developing, where you need to login. I’ve executed the command in several places but when I put…
-
0
votes1
answer158
viewsGenerate MAC address hash and save to database
According to my question to get the address mac of the network card and generate its hash, the following methods are used: private string GetSHA1HashData(string data) { SHA1 sha1 = SHA1.Create();…
-
0
votes0
answers161
viewsHow to calculate the hash value of a specific byte array
How 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…
-
0
votes1
answer78
viewsUse of the Big Integer class to build an MD5 hash
I found in another post right here in the OS the following example of code to generate a hash through MD5: String message = "teste1234"; byte[] hash =…
-
0
votes4
answers6374
viewsEncrypt Java password with Hash sha256
i need to compare the password that the user is placing on a login screen with the one saved in the database, I found that when the user is registered is used to hash sha256 to encrypt the password,…
-
0
votes1
answer290
viewsSimple example of p2p blockchain in python, anyone?
Hello, I am interested in blockchain technology to track origin of products to prevent fraud (imported drinks). Someone would have examples and how to start in python. thanks.
-
0
votes1
answer146
viewsComparison of hashes in PHP
Is there any way to make a comparison with two hashes of different types and find out if their content is equal or not? For example: I have a hash in SHA512 and another in MD5 (can be any other type…
-
0
votes1
answer145
viewsIs there any risk in using Django’s Token generator in different services?
Assuming I’m already using the library django.contrib.auth.tokens.default_token_generator generating tokens to reset a user’s password, and want to use the same method to activate the user, or for…
-
0
votes1
answer126
viewsReverse path hash_hmac
It is possible to do the reverse path of the following function? hash_hmac('sha512', $password . $user_salt, $this->salt) I am recovering user from an application to a new one and need to recover…
-
0
votes1
answer205
viewsWhat are the differences between hashed or tree map implementation?
What is the advantage of implementing maps by table hash instead of the binary tree?
hashasked 6 years, 8 months ago Felipe Machado 137 -
0
votes1
answer11
viewsHow to use Stylus lookup on an Object hash
There is a way to use the function lookup to apply hash objects within a for? I’m using it this way: $color= { $success: { bg: #4caf50, ... } , $error: { bg: #f44336, ... } , $warning: { bg:…
-
0
votes1
answer73
viewsHash function in Arduino
I’m doing a project where I need to randomly generate hash numbers. The code has to work as follows. A function random generates a random number, these numbers are concatenated with a String to…
-
0
votes2
answers618
viewsCompare Hash of two files in Python
I need to compare the hash of the files a.txt and b.txt using a python3 native library. I tried to do so: import hashlib file_0 = 'a.txt' file_1 = 'b.txt' hash_0 = hashlib.new('ripemd160')…