Questions tagged as 'hash'

2
answers

Compare Hash of two files in Python

I need to compare the hash of a.txt and b.txt files using a native python3 library. I tried to do this: import hashlib file_0 = 'a.txt' file_1 = 'b.txt' hash_0 = hashlib.new('ripemd160') hash_0.update(file_0) hash_1 = hashlib.new('ripemd1...
asked by 04.01.2019 / 14:45
4
answers

Encrypt password in Java with sha256 Hash

I need to compare the password that the user is putting in a login screen with the one that is saved in the database, I discovered that when the user is registered, the hash sha256 to encrypt the password, but I'm not able to find how to encr...
asked by 12.05.2017 / 22:19
1
answer

Reverse path hash_hmac

Is it possible to do the inverse path of the following function? hash_hmac('sha512', $password . $user_salt, $this->salt) I am retrieving user from an application for a new one and need to recover the passwords to register in the encrypt...
asked by 14.04.2018 / 06:35
1
answer

Simple example of blockchain p2p in python, anyone have? [closed]

Hello, I am interested in blockchain technology to track product origin to avoid fraud (imported drinks). Someone would have examples and how to start in python. Thanks.     
asked by 19.05.2017 / 19:02
1
answer

Check password hash at login (password_hash)

I did all the login code, but when I went to test, I gave the login error, using the same password that I used in the registry, when I realized that password_hash always generates a different hash. Since a different hash is always generated, h...
asked by 09.07.2018 / 03:42
1
answer

Comparison of hashes in PHP

Is there any way to make a comparison with two hashes of different types and find out if their contents are the same or not? For example : I have a hash in SHA512 and another in MD5 (can be any other hash ) that were created from of the...
asked by 04.12.2017 / 17:31
1
answer

Is there any risk in using the Django Token Generator in different services?

Assuming that I'm already using the 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 any other similar service, are there any o...
asked by 10.06.2016 / 01:44
1
answer

Problem with nested form has_many through using dynamic form

I'm having the following problem on a form using has_many through. I have a registration where I created dynamic forms. These dynamic forms are inserted in another screen. I'm having difficulty in the controller where I insert these fomula...
asked by 22.06.2016 / 17:19
1
answer

Use of the Big Integer class in the construction of an MD5 hash

I found in another post right here from the OS the following code example for generating a hash through MD5: String message = "teste1234"; byte[] hash = MessageDigest.getInstance("MD5").digest(message.getBytes("UTF-8")); System.out.println("MD...
asked by 27.03.2016 / 20:03
1
answer

debug.keystore on Mac to generate hash

I need to generate the hash of my Mac to add to Facebook and be able to continue the application that I am developing, where you need the login. I've run the command in several places but when I put the app inside developers.facebook and run my...
asked by 07.01.2015 / 21:38