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
2 answers

Quickblox Rails Signature

I am having a very hard time getting access to the quickblox API. Based on their documentation this code should work: require 'base64' require 'cgi' require 'openssl' require 'hmac-sha1' # Application credentials aPPLICATION_ID = 12345 …
Steffan Perry
  • 2,112
  • 1
  • 21
  • 21
0
votes
3 answers

Trying to hash a password

Note: I will not be using salts. Thanks for your advice though! I'm testing how to hash a password using SHA1 and can't seem to wrap my head around it. My database column is Password char(40) not null. Here's my code: using System; using…
delete
0
votes
1 answer

C++ MFC SHA-1 Weak Signature Algorithm Unable to Connect

I'm working with a windows desktop app written in C++ with MFC libraries to create web requests. The web requests are succeeding on over 90% of our customers' machines - from Windows XP through 10. 10% of our customers' machines are failing saying…
kmehta
  • 2,457
  • 6
  • 31
  • 37
0
votes
1 answer

Java SHA1withDSA to PHP, convertible?

Any success in implementing SHA1withDSA signature with PHP? A failure reported here. PKCS8EncodedKeySpec prvSpec = new PKCS8EncodedKeySpec(prvKeyBytes); KeyFactory keyFactory = KeyFactory.getInstance("DSA"); PrivateKey prvKey =…
Mohsen
  • 3,512
  • 3
  • 38
  • 66
0
votes
1 answer

mysql select returns empty on sha1 hashed password

I am testing to hash using sha1 and i have inserted a row : insert into tbl_user (username, password, email) values ('maysam', sha1('21lf892'), 'gerdakan.sa@gmail.com'); and when i want to select a row like using : select * from tbl_user where…
senaps
  • 1,374
  • 1
  • 14
  • 25
0
votes
1 answer

How can I generate the same checksum as artifactory?

As art.exe (the artifactory CLI interface) hangs whenever I call it from my build script, I am rewriting the bash script from their page on the topic in powershell 2.0. I'm using this code to generate my checksum: $sha1 = New-Object…
sirdank
  • 3,351
  • 3
  • 25
  • 58
0
votes
1 answer

Logging to SHA-1 Certificate site on Firefox (44.0) - the latest version

Something has changed in the latest version of Firefox (44.0) that makes it impossible for a user to login to the SHA-1 Certificate Site. When you type the password and try to login, it just clears your username and password out and sits on the…
Nada N. Hantouli
  • 1,310
  • 1
  • 12
  • 20
0
votes
1 answer

How i get android api key for use in delphi xe5

i want to build android project with delphi xe5,i want to use google cloud messanging (gcm) for push notification, but i cant create google api key (sha1 fingerprint).. Anyone can help me?
0
votes
1 answer

Seed for the salt in sha1 .net membership provider

The password salt for SHA1 Hashing is generated with the following function : (new RNGCryptoServiceProvider()).GetBytes(buf); What is used as the seed of RNGCryptoServiceProvider? Can the values of passwordsalt for the registered users in asp.net…
EngelbertCoder
  • 777
  • 2
  • 9
  • 29
0
votes
2 answers

Git cherry-pick and sha-1 value

In https://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project is example that shows how to cherry pick on a branch. In this example the sha-1 value of commit is used in full length? $ git cherry-pick…
0
votes
1 answer

DataContractSerializer error when serializing a object for SHA1 encryption

I am attempting to encrypt a number of third-party class objects using SHA1. These class objects are being consumed from Service References and are unmanaged by me. While I can see and review the code in the Service Reference, I am unable to make…
Russ
  • 678
  • 8
  • 26
0
votes
1 answer

make MessageDigest and Cipher equivalent to java.security.Signature

I want to implement my own signature function using RSA as a cipher algorithm and SHA-1 as a hash function, to do so I implemented those two function: public byte[] mySign(byte[] aMessage){ try{ // get an instance of a cipher with RSA…
user3510821
  • 113
  • 1
  • 5
  • 15
0
votes
2 answers

App signed with multiple certificates rejected

I'm trying to upgrade my app (developed with appinventor 1.0) on google play. I'm using the same keystore but I get the following message (sorry the ignorance, not sure it matters but for security I changed some of the keys below after…
an mo
  • 1
0
votes
1 answer

Is it possible for the output of SHA-1 to end in zero bytes?

Is it possible for sha1 hashes to end with zero bytes? Python Code hash = haslib.sha1(); hash.update(STRING THAT RESULTS IN ZERO BYTES); if hash.digest().endswith('\x00\x00\x00'): ....
themz
  • 15
  • 3
0
votes
0 answers

Is it possible to use RSAwithSHA1 in php?

Is it possible to use "RSAwithSHA1" as used for Signature.getInstance("RSAwithSHA1") in PHP? I've generated the keys using: openssl genrsa -out key.pem 1024
isaacerd
  • 1
  • 2
1 2 3
99
100