Questions tagged [sha1]

SHA-1 is a cryptographic hash function designed by the U.S. Government as a Federal Information Processing Standard. Recently, collisions have been detected, meaning that SHA1 is becoming more vulnerable to attacks, and its use for protecting data is not recommended.

NOTE: Sha1 is no longer secure due to collisions being found. It is recommended you use or another hashing system like

In cryptography, SHA-1 is a cryptographic hash function designed by the National Security Agency (NSA) and published by the NIST as a U.S. Federal Information Processing Standard. SHA stands for Secure Hash Algorithm. The three SHA algorithms are structured differently and are distinguished as SHA-0, SHA-1, and SHA-2. SHA-1 is very similar to SHA-0, but corrects an error in the original SHA hash specification that led to significant weaknesses. The SHA-0 algorithm was not adopted by many applications. SHA-2 on the other hand significantly differs from the SHA-1 hash function.

SHA-1 is the most widely used of the existing SHA hash functions, and is employed in several widely-used security applications and protocols. In 2005, security flaws were identified in SHA-1, namely that a mathematical weakness might exist, indicating that a stronger hash function would be desirable. Although no successful attacks have yet been reported on the SHA-2 variants, they are algorithmically similar to SHA-1 and so efforts are underway to develop improved alternatives. A new hash standard, SHA-3, is currently under development — an ongoing NIST hash function competition is scheduled to end with the selection of a winning function in 2012.

References:

1825 questions
0
votes
3 answers

Android Firebase Dynamic Links setup - SHA-1 not recognized

i am trying to setup my android app to use firebase dynamic links and am experiencing a problem in setting it up in the firebase console. i had previously added my app to my firebase project to use the realtime database and it works with no…
Clive Sargeant
  • 622
  • 11
  • 24
0
votes
0 answers

SHA-1 unbalanced Feistel network?

Does SHA-1 use an unbalanced or a balanced Feistel network? For my understanding it uses an unbalanced Feistel network, because each 160-bit block gets split into five 32-bit words.
Paul White
  • 53
  • 1
  • 4
0
votes
2 answers

SHA1: different results for PHP and C#

I have a code to generate hash in C#: string hash = GetHash("Ю-41241624.05.1991"); public static string GetHash(string str) { Encoding eu = Encoding.UTF8; byte[] data = eu.GetBytes(str); SHA1 sha = new SHA1CryptoServiceProvider(); …
Stargazer
  • 478
  • 2
  • 9
0
votes
2 answers

node.js and ruby 1.8 different hmac sha1 result

I have ruby 1.8.7 code that create hmac with sha1 key= '123' digest = Digest::SHA1.new digest << 'test string' digest << key result = digest.hexdigest # "c1bdfd602e1581f1ab91928e2c3fd371a1e63a5c" I want to replicate this with node.js: key=…
mhd
  • 4,561
  • 10
  • 37
  • 53
0
votes
0 answers

Convert SHA1 password to Microsoft.AspNet.Identity PasswordHasher

I have a new application which uses Microsoft.AspNet.Identity PasswordHasher. I am trying to import all the login information from the old system which uses SHA1 passwords to the new system. I know SHA1 is a one-way hash and it cannot be decrypted.…
Kunwar
  • 129
  • 1
  • 6
0
votes
1 answer

re-crypt sha1 password with bcrypt

So as anyone I have a table where I store users, and right now the passwords are saved using SHA1, and I want to upgrade the passwords to use bcrypt. Which is the best way to do this? Make a script that takes every user in the table and UPDATE the…
Uffo
  • 9,628
  • 24
  • 90
  • 154
0
votes
1 answer

I need assistance with getting the release & debug certificate fingerprint

I'm working on an app that requires login with Google account. I got stuck at release certificate fingerprint and debug certificate fingerprint. It says Open a terminal and run the keytool utility provided with Java to get the SHA-1 fingerprint…
Auro
  • 1,578
  • 3
  • 31
  • 62
0
votes
1 answer

NodeJS lineReader appendFile -- lines get lost somewhere

I have a script that is running fine with on my local computer using a 10 line test file. However, when I use the script in AWS with the real file, which is 20 million lines, I seem to lose 1/5th of the lines. What am I doing wrong in this script? I…
rogue0137
  • 21
  • 5
0
votes
1 answer

SHA1 varies in java and javascript for same input

Facing an issue while creating SHA1 from javascript and java. The problem is both are different. It is used for validating the client request to web server. That means client send a based64 encoded security key to server and server regenerate the…
user867662
  • 1,091
  • 4
  • 20
  • 45
0
votes
2 answers

crc64-jones or crc64-ecma available in ruby?

I read a paper that explained that using CRCs generated from the CRC-64-ISO algorithm as hash keys is likely to result in collisions for large sets of data. Postmodern's Ruby CRC project is pretty interesting, but the CRC64 class seems to be using…
Eric Walker
  • 7,063
  • 3
  • 35
  • 38
0
votes
1 answer

SHA1 not consistent with keytool

I am facing a very weird problem with my Google Maps API key on an app that has been working without problems for long. Now, when I run my app in AS, I get the very famous Ensure that the "Google Maps Android API v2" is enabled with…
michaelsmith
  • 1,011
  • 1
  • 16
  • 35
0
votes
0 answers

SHA -1 algorithm source code

SHA 1 algorithm will compress and convert the input data into 160 bit format.so, i need java source code for this SHA 1 alogorithm in which whatever the input data we give,that needs to be converted into 160 bit format.please help to solve this
gowtham
  • 1
  • 1
0
votes
0 answers

Effective ways to find partial sha1 collision

I need to find 2 different string and compare their hash value. Both string must contain "abc". I looking for the first eight character that are the same and stop. I have been running for more than 24 hours and still not found. My code has no…
Tommy Yap
  • 85
  • 1
  • 9
0
votes
1 answer

Google Maps Android API Authorization failure, despite SHA1 keys registered

Developing an Android app locally using Android Studio 1.3 Small closed beta on Google Play Store One API key registered against this one app with two SHA1 keys - one local, and one for the release-signed APK using our organisation's Android…
0
votes
1 answer

Storing hash value to int

i have implement a sha1 hash function. The hash function is printing out the hash value correctly but is not storing the hash value correctly to the int variable. Please help me out, i have been trying for the whole day, but im not able to correct…
Bhappy
  • 13
  • 6