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
1 answer

How do I store user password with Bcrypt

I am designing a php website, and I used sha1 to store password for the users, but I later read that sha1 is unsafe, Its better i use Bcrypt, now I try to find about Bcrypt but these questions - How do you use bcrypt for hashing.. and Is Bcrypt used…
4Jean
  • 765
  • 1
  • 13
  • 25
0
votes
1 answer

Generating sha-1 from file content

I need to generate a SHA-1 code from a file content (so for example the same image with different names produces the same code). I would prefer to use openssl, since it seems to be the more performant. In this question is explained how to obtain a…
justHelloWorld
  • 6,478
  • 8
  • 58
  • 138
0
votes
1 answer

SHA1 with non-standard characters

I'm implementing an online payment system : Paybox. I've got an autoresponse (between servers) and a response (attached to my customer when he is returning to my website. Everything's good except for the signature which is a SHA1. On the…
Faquarl
  • 158
  • 1
  • 9
0
votes
5 answers

Flatten deep nested hash to array for sha1 hashing

I want to compute an unique sha1 hash from a ruby hash. I thought about (Deep) Converting the Hash into an array Sorting the array Join array by empty string calculate sha1 Consider the following hash: hash = { foo: "test", bar: [1,2,3] …
23tux
  • 14,104
  • 15
  • 88
  • 187
0
votes
1 answer

Is SHA1 and SHA256 associative?

Let x be a variable over which we intend to use the hash function. I want to know if SHA256(SHA1(x)) is equal to SHA1(SHA256(x))?
mitbos
  • 27
  • 4
0
votes
0 answers

Google Maps Android API: Authorization failure, after adding the correct Android map key

Google maps are not displayed. I've followed all the instructions which are as below: As per the google doc I got the SHA-1 certificate fingerprint. I've added the fingerprint against the package name in developer API console. Everything was…
ravidl
  • 1,055
  • 2
  • 9
  • 18
0
votes
0 answers

Retrieving SHA-1 Hashes from .txt

I've implemented an SHA-1 hash function in a server program I wrote, which generates a .txt file of username password pairs with the passwords represented by their respective hash values. I am having trouble retrieving the hash values from the file…
Andrew Feather
  • 173
  • 2
  • 14
0
votes
2 answers

Swift SHA1 function without HMAC

i try to get SHA1 working in swift. without using CommonCrypto since it is not default in swift. please see https://gist.github.com/wdg/f7c8c4088030c59f0f45 (since it's a little to big to post) if i run a test case in Xcode: func test_sha1() { …
0
votes
2 answers

Migrate customer password from Magento to Opencart2

I need to migrate password from magento to opencart 2. I don't know exactly which version magento, I think it's v1. In opencart, the class responsible for the encryption is: AccountCustomer, and is stored in this file: …
Cassio Seffrin
  • 7,293
  • 1
  • 54
  • 54
0
votes
0 answers

Is it possible to create cross directory hard links in git?

git builds and stores paths in ram. It means if a directory can reference it’s parent with a regular name, the server or the client computer which clone a repository will run out of ram (no code seems to check that). However paths are stored in git…
user2284570
  • 2,891
  • 3
  • 26
  • 74
0
votes
0 answers

How to check data integrity when mongoose adds __v field?

I'm inserting a nested document in mongo using mongoose. { "_id": "56dea517302071934eae7913", "name": "abc", "counter": [ { "name": "xyz", "count": 1, } ] } But On querying Mongo I get doc like: { …
Shipra
  • 1,259
  • 2
  • 14
  • 26
0
votes
2 answers

My SHA1 key changes after formatting my PC. I am unable to submit new version to play store

I am getting below error from Play Store while uploading new version to existing app. Upload failed You uploaded an APK that is signed with a different certificate to your previous APKs. You must use the same certificate. Your existing APKs are…
0
votes
1 answer

sha1 collision of less than 512 bit

In Wikipedia SHA-1 pseudocode, it's said: Pre-processing: append the bit '1' to the message e.g. by adding 0x80 if message length is a multiple of 8 bits. append 0 ≤ k < 512 bits '0', such that the resulting message length in bits So is it…
whi
  • 2,685
  • 6
  • 33
  • 40
0
votes
1 answer

Use a SHA1 from one project into another one

I am going to make a huge update in an app. It will connect to a new DB using new APIs, I will renew all the layouts, add some functionalities, remove others... so I am thinking on starting it from scratch because I will spend more time updating the…
Iban Arriola
  • 2,526
  • 9
  • 41
  • 88
0
votes
1 answer

Which Root CA still issues SHA-1 ssl certificates?

Is there any CA that still issues SHA-1 certificates? I need it for TR management to manage devices with base firmware that does not support sha256.
eladelad
  • 99
  • 2
  • 10