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

Verify signature

I have 64bit encoded signature need to verify SHA1 this is what I did byte[] decodeValue = Base64.decode(currentItem.getEnclosure().getSignature(), Base64.DEFAULT); and I got byte results now signature try { Signature signature =…
Adnan
  • 7,825
  • 3
  • 23
  • 41
0
votes
1 answer

Converting SHA1 string encryption code from objective-c to swift

So this is the original Objective-C code I have: - (NSString *)calculateSignaturewithAPIKey:(NSString *)apiKey apiKeyPrivate:(NSString *)apiKeyPrivate httpMethod:(NSString *)httpMethod route:(NSString *)theRoute andExpiresIn:(NSString *)expireTime…
Dmitri K.
  • 197
  • 1
  • 13
0
votes
2 answers

how to compare sha1 encripted password in Java?

Let say i have encripted SHA1 password like this String pass = "f6ce584e7b4ff5253eed4a2ea2b44247"; and i want make condition like this : if (pass.equals("userinput")){ System.out.println("success"); } please someone help me to make…
0
votes
1 answer

Solr 4.x: Should I use binary as uniquekey?

I am currently investigating using sha1 hashing which will be stored in MS Sql Server as binary(20). Looking at the currently available datatypes in Solr 4.x, the only one that seems large enough is binary. However, I am unsure if using binary as…
BillS
  • 1
  • 2
0
votes
1 answer

Sign document using RSA

I haven't done anything similar before and after reading about this I'm still not sure on how to progress. I have a RSA private key which is protected using a password, stored as text in the local database, and this is my fist problem, how to get…
MeTitus
  • 3,390
  • 2
  • 25
  • 49
0
votes
1 answer

sha1WithRSAEncryption in Python

Can someone recommend a library for calculating SHA1WithRSAEncryption in Python? Context: I'm trying to do some message authentication. I've looked at PyXMLDSig, but it seemed to expect the certificates as separate files. As a first step to better…
AdamC
  • 457
  • 1
  • 4
  • 14
0
votes
1 answer

Count SHA1 of NSData

I need to count SHA1 checksum of NSData object. How can I do it? Thanks in advance!
Knodel
  • 4,359
  • 8
  • 42
  • 66
0
votes
2 answers

PHP Login connecting to MySQL database with SHA1

I'm having trouble with a simple login form and accessing the database. For the exercise, I have to create a simple login form, access the database with SHA1 encryption, then access a members area, but whenever I try to login, I get an invalid…
jk1984
  • 39
  • 6
0
votes
1 answer

generate certificate using a known fingerprint

I am not an expert (not even a novice :))) in security certificates and such - thus the question - but I was wondering if one can generate a new certificate by using a known fingerprint? :D (lost my certificate for a google play app and was…
0
votes
3 answers

Google Signin not working after SignedApk

I have done Google Plus Integration. Google Plus Signin works fine before signing apk. Once I have Signed my apk, i could not login/signin to Google plus. Is it problem of SHA1 key ? Please, Guide me. Thanks
AskingToStack
  • 59
  • 1
  • 5
0
votes
1 answer

php array converting child class with sha1

I have the following piece of code (example for the problem): class A { public $x; public $y; public function __construct($x, $y) { $this->x = sha1($x); $this->y = $y; } public function __clone() { return new A($this->x,…
Mo-
  • 155
  • 15
0
votes
1 answer

A new project with the same SHA1

So, I've been practicing with Firebase recently and did a project, it works fine. Today I've decided to move on and create another project and here comes the problem: The SHA1 of my new project appears to be the same with SHA1 of my previous…
Sergey Emeliyanov
  • 5,158
  • 6
  • 29
  • 52
0
votes
1 answer

Node Js SHA 1 multiple times

Hello I have this Java code which uses the following encryption method to encrypt password. MessageDigest digester = MessageDigest.getInstance("SHA-1"); value = digester.digest(password.getBytes()); digester.update(email.getBytes()); value =…
Bhushan
  • 95
  • 3
  • 13
0
votes
1 answer

XAMPP - SSL Certificate. Broken HTTPS

I was trying to get a SSL Certificate for my website using XAMPP. I am doing exactly what they tell me to do using this tutorial http://robsnotebook.com/xampp-ssl-encrypt-passwords. For some reason I get this error…
Bin Flaxx
  • 11
  • 5
0
votes
0 answers

Formatting text Output from Stream

I'm trying to produce a "Signature" SHA1 string to append to a URI. I've got a string URI piece and a secret from the target vendor. I need to take the URI text and the secret and produce a signature string that looks similar to this in…
LightStamp
  • 39
  • 7