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.

Filter by
Sorted by
Tagged with
-12 votes
0 answers
56 views

Cybersecurity program [closed]

Write a Python program that reads a file containing a list of usernames and passwords, one pair per line (separatized by a comma). It checks each password to see if it has been leaked in a data breach....
SANGIWE NOMHLE MOYO's user avatar
-1 votes
0 answers
77 views

Conversion of AES128 algorithm written in Java to c# [closed]

I have AES128 encryption algorithm written in Java. I have to decrypt the same in c# application. Also vice versa is also needed. Because of which I have to write a similar algorithm in c#. I have ...
Somu's user avatar
  • 1
1 vote
1 answer
68 views

How to calculate SHA-1 fingerprint of an X.509 certificate in Flutter?

I am trying to fix this issue Improper Verification of App Signature at Runtime. for my flutter app. Description of this issue is Android apps are digitally signed. A digital signature, in this ...
Debabrata Samal's user avatar
0 votes
0 answers
27 views

Reference Error - SHA-1 for node_modules\@react-native\metro-config\node_modules\@react-native\js-polyfills\console.js is not computed

Trying to run my app on react native android uses metro/yarn. Recieved the error in the title. Full error message below. ReferenceError: SHA-1 for file C:\Users\usr\app\node_modules\@react-native\...
NOt rnaomd's user avatar
0 votes
0 answers
13 views

The term '-alias' is not recognized , while generating SHA1 key for firebase

while generating the SHA1 key for firebase , I was using this command keytool -list -v \ -alias androiddebugkey -keystore %USERPROFILE%\.android\debug.keystore then I got this error -alias : The term ...
Udit Sharma's user avatar
0 votes
1 answer
67 views

Generate Openssl signature

I'm trying to generate a signature file using my private key for a source file. the command works fine when I run it in command prompt. But when I try to do the same through the code, signature is not ...
Abhishek's user avatar
0 votes
0 answers
76 views

One or more of your Android apps have a SHA-1 fingerprint and package name combination that's in use

I am trying to ad SHA-1 Key from Google Developer Console to my Firebase project. I am getting error: "One or more of your Android apps have a SHA-1 fingerprint and package name combination that'...
Nedim Karavdic's user avatar
-1 votes
1 answer
45 views

Byte size and hashs?

I was using a hash generator, and when you enter SHA1 into the lookup, it spits out 40 characters under SHA1. So when I looked it up on the internet to see the byte size, it says 20 bytes, even though ...
Victory1256's user avatar
0 votes
2 answers
89 views

Hashing with sha1[:10] or MD5 for caching, is MD5 is better?

I tried to find good hashing function that will be fast and short There is discussion Hash function that produces short hashes? They recommend to use: >>> import hashlib >>> hash = ...
Yehuda's user avatar
  • 459
4 votes
2 answers
208 views

Flask Session Cookie Tampering

I was competing in a CTF contest and faced an issue while trying to manipulate a Flask session cookie. Specifically, I was able to decode it successfully (without having its secret key) using Flask ...
b3nguang's user avatar
1 vote
1 answer
42 views

Does boto3 Python SDK "boto3.complete_multipart_upload()" calculate the SHA1 for each part?

To me, the docs are unclear. If you've enabled additional checksum values for your multipart object, Amazon S3 calculates the checksum for each individual part by using the specified checksum ...
ericOnline's user avatar
  • 1,724
0 votes
0 answers
64 views

How can I generate my key to decrypt files that I encrypted with a key that I generated with this code?

public static byte[] generateKey(String password) throws Exception { byte[] keyStart = password.getBytes("UTF-8"); KeyGenerator kgen = KeyGenerator.getInstance("AES&...
John Italo Cerna Ramos's user avatar
0 votes
1 answer
77 views

RFC-6238 TOTP implementation not matching examples

Here is my simple implementation of RFC 6238 using System.Text; using System.Security.Cryptography; namespace totp; class Program { static void Main(string[] args) { //string secret = ...
birb's user avatar
  • 1
1 vote
2 answers
34 views

mysql - SHA() method gives different result for same value of binary type with different sizes

SHA() method giving different result for same value of binary with different sizes. Created a table, columns with X1 binary(1), X2 binary(10) size. CREATE TABLE TEST_binary10_2 ( PK bigint NOT NULL, ...
vasu's user avatar
  • 127
0 votes
1 answer
108 views

Rust sha1::Sha1 result is different from shasum [duplicate]

I'm computing the SHA1 digest in Rust via sha1 crate and use the values as a part of a larger utility. use sha1::{Digest, Sha1}; fn main() { for s in vec![ "a", "...
devforfu's user avatar
  • 1,582
0 votes
0 answers
51 views

Sms autofill not working when install from google play - Android

When the user installs my app from Google Play, SMS reading is not applied and the SMSBroadcastReceiver class does not called But it works when the APK is installed What is the problem ?
Ali Najaphi's user avatar
2 votes
1 answer
55 views

Stuck with SHA1 on .NET Standard 2.0

I am making an upgrade from .NET Framework to hopefully .NET. The thing is that we have a big solution with more than a 100 projects. The idea is that this can go into stages. We could upgrade to .NET ...
Bojan's user avatar
  • 829
0 votes
0 answers
56 views

How to sign a string using SHA1WITHRSA, X509Certificate2 and BouncyCastle in .NET?

I am currently working on a project where I have to sign an XML document to send it to a webservice. I have tried several code snippets I could find here and around the web, but have not yet achieved ...
Jay Weber's user avatar
-3 votes
1 answer
51 views

How to encode this from hex to hex in php ? hmac sha-1

I need to write THIS in php https://cryptii.com/pipes/QiZmdA I have tried those but don't produce the same result <?php echo hash_hmac('sha1', '002590cd26da', "8544e3b47eca58f9583043f8&...
kostas m's user avatar
0 votes
0 answers
16 views

Can't sign report to get SHA1

FAILURE: Build failed with an exception. What went wrong: Could not open settings generic class cache for settings file 'C:\Uladzislau\Sparkco\sparkco\android\settings.gradle' (C:\Users\uladz.gradle\...
Uladzislau Krukouski's user avatar
0 votes
1 answer
67 views

I get (An internal error has occurred. [Requests from this Android client applicaiont xxx.xxx.xxx] are blocked!) in my debug mode only

I have searched all over the internet there several solutions to this specific issue but no luck my case. In my case the release version works absolutely fine but when I run a debug version of it even ...
Majid Tunio's user avatar
0 votes
0 answers
32 views

How does Android Studio Generate SHA-1 Fingerprint in Principle?

On the internet, when comes to explaining how Android Studio generates the SHA-1 fingerprint for an app, it almost always center around just 2 messages. (1) SHA-1 is fundamentally a checksum for your ...
Bosco Tsin's user avatar
2 votes
1 answer
2k views

SMS verification code request failed: unknown status code: 17028 Invalid request fields in play_integrity_token - Flutter

E/FirebaseAuth(12806): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17028 Invalid request fields in play_integrity_token D/FirebaseAuth(12806): Invoking original ...
Unudulmayan melodiyalar's user avatar
-1 votes
2 answers
51 views

Unable to update my app through market play

Lets say I'm releasing my app through developer console. At the same time, the same app I'm installing through android studio on my phone. Everything is ok. When release is ready and published, I ...
Dima Bokov's user avatar
1 vote
2 answers
78 views

Android Studio - how to securely store SHA-1 key in app

I have an android native app and for security reasons now the client says to encrypt SHA-1 key. I checked for the app for generated certificates it shows SHA-1 SHA-256 and MD5. How do I store it all ...
Abm's user avatar
  • 291
0 votes
0 answers
19 views

Does an HMAC in an automated system provide any practical protection that a normal hash can't assuming proper parsing?

From my research on using HMAC, it protects against length extension attacks on Merkle-Damgård hash algorithms. Is an HMAC only useful in the circumstance that the message syntax allows for ...
drowsily.throbbing872's user avatar
0 votes
0 answers
84 views

Signing an existing Android APK with a new certificate and releasing on Google play

So we currently have an existing keystore which we use to sign our APKs and release onto Google Play. But the certificate in the keystore is using a certificate which as been signed using SHA1RSA ...
kirti garkhedkar's user avatar
1 vote
1 answer
56 views

HMAC using SHA-1: Can't concat int to bytes

I need to implement hmac with sha1 using haslib.sha1. I defined a sha1 function which instantiates a sha1object for using it for the hmac function. Goal is a correct padding of the Key and using it ...
quintus's user avatar
  • 11
0 votes
0 answers
22 views

Reconstruction of PCR register from ASCII measurements

I have simple linux IMA measurements and I am trying to reconstruct PCR registers for remote verification. 10 4347bff321748edf90d2dc40edaa1b54c7eaaa16 ima-ng sha256:...
Haris Saeed's user avatar
-2 votes
1 answer
285 views

Is there any other way to generate SHA1 key from android studio?

I am trying to run flutter project in Android Studio. I download the project and trying to get SHA 1 key for Firebase. How did I done that--> In android forlder --> open gradlew in Terminal --&...
user8523690's user avatar
0 votes
0 answers
168 views

Spring Security 5 generates different encoded string than Spring Security 4 using SHA-1 encoding

Our dev team has been notified that our application will no longer be deployed until we upgrade from Spring Security 4.x to Spring Security 5, due to an authorization bypass vulnerability in earlier ...
Paul's user avatar
  • 23
0 votes
0 answers
197 views

How to SHA1 encryption in a Logic App WITH a SecretKey

I need my Azure Logic App to encrypt a value using HMAC SHA1 INCLUDING a Secret Key. This is necessary as I need to pass the resulting value back to Data Factory to send to an API. I can ...
user3735855's user avatar
0 votes
0 answers
38 views

How do I decode text that are 64 characters long

How can I decode a text. I have a 64 long character word that I want to decode from an sql file. At the top on the sql it says SET Client encoding UTF8. Also its in Hash Format: SHA1 & SHA-256. ...
garici5394's user avatar
0 votes
0 answers
358 views

SHA1 HASH of TEXT column - how to do in PostgreSQL

I need a query that will encode a TEXT column w SHA1. It is not for passwords, but used as a simple changed status check. I truncate at 40chars as it is a loose check. This query part works in MS SQL ...
NEW2WEB's user avatar
  • 503
0 votes
1 answer
209 views

I can't get SHA-1 Key

When we enter the "gradle signingReport" command to get SHA-1 Key in Android Studio, we normally need to see the SHA-1 output in the console, but it gives me such an output, is there anyone ...
Eyyubi's user avatar
  • 5
0 votes
0 answers
171 views

WPA3 PRF(SHA256) Key derivation algorithm in Python

I exercised successfully the key derivation algorithm (customPRF512(key,A,B) known as PRF(SHA1))on WPA2-PMF. However, on WPA3 that algorithm did not work as in did not generate the expected values (...
salibeh's user avatar
0 votes
0 answers
61 views

python salted hashes producing unexpected results using sha1 and md5

I am trying to write a simple python script to hash a list of passwords and compare the resulting hashes against a list. I know that these 4 hashes match 4 of the listed passwords hashed with sha1 and ...
Matt's user avatar
  • 47
0 votes
0 answers
213 views

How to implement SHA1 in C

I am trying to wrap my head around HOTP values, and I believe the essential building block is understanding the SHA-1 hashing function. I am coding in C, and I have seen many examples of people ...
Chris De Santiago's user avatar
0 votes
1 answer
36 views

Python - Adding new class/function to oauth/oauth2

Following a previous problem I had regarding upgrading SHA1 to SHA256 for a NetSuite API, one of the steps I need to take seems to be adding the following class: SignatureMethod_HMAC_SHA256 As well ...
Yekab Yekaj's user avatar
0 votes
0 answers
216 views

OpenSSH Server Hostkey RSA without SHA1

Is there away to disable the SHA1 as an option in ssh-keygen for an RSA hostkey? Trying to use ssh-keygen to create a RSA hostkey without including SHA1 ssh-keygen -t rsa -b 4096 -f /etc/ssh/...
Mister Sleyd's user avatar
0 votes
1 answer
66 views

How can git store and unpack so much data via a small SHA-1 hash?

I understand that git uses SHA-1 to come up with a hash given the contents of the file. However, I still cannot see how git 'unpacks' this 40 character hash into a full file which could be very large. ...
mars8's user avatar
  • 922
-1 votes
1 answer
198 views

How can I SHA1-HMAC a string in Python

I've been trying to figure out how to use HMAC to hash a string in Python for a TOTP generator I've already made in PHP. In PHP, I use the command echo -n "0x00000000035362f9" | xxd -r -p | ...
lwashington27's user avatar
0 votes
0 answers
34 views

How to mimic the `sha1_file($img)` method from the browser to verify a img file?

I'm trying my best to figure out how to send a sha-1 hash of the image file from my browser to verify the contents of a backblaze b2 upload. From the browser, I need to: provide a (1) the 40-character ...
Phil's user avatar
  • 11k
0 votes
0 answers
16 views

Problems in second blocks message digest in self-learning SHA-1 algorithm

Output I am new in learning C programming. Now, I am trying to do SHA-1 for university project. I think this coding by myself. I am trying to do the message digest from the file above 55characters, ...
TAN ZI YI's user avatar
-1 votes
1 answer
92 views

Android secure backend-server connection

I'm writing an Android app that talks with my php backend server. I want to give sha1 fingerprint to server everytime when i make a request, in this way server will know it's my app and will answer ...
sporcukarti's user avatar
1 vote
0 answers
89 views

PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 12500: , null, null)

I am using google console for login with email. its works properly before I add my project to firebase. I want to send notification to user so I added my project to firebase for notification and its ...
Taki Rajani's user avatar
0 votes
0 answers
66 views

File uploading directly from client to backlaze bucket using Uppy Js

I tried three different methods to get checksum of a same file. 1- using crypto-js (with CryptoJS.SHA1(event.target.result)) 2- using sha1.min.js (with sha1(event.target.result) 3- using crypto (with ...
uzair aslam's user avatar
3 votes
1 answer
789 views

Flutter app - Google sign in doesn't work after publishing to PlayStore

I use Firebase authentication with google_sign_in for my CrossPlatform Mobile app that's been developed with Flutter framework. The problem : When I press the login button on the published app to log ...
Diák Dezső's user avatar
0 votes
1 answer
189 views

java.io.IOException: Invalid keystore format how can i fix the problem?

I've been trying to solve the problem for the past 5 hours, but I just can't find the problem. I just want to have the SHA-1 value and then enter this command in my project in the terminal, but an ...
Yunus's user avatar
  • 19
0 votes
2 answers
505 views

Why SHA1 and SHA256 are not matching with my app package name?

I am working on Two different flutter projects and i am trying to authentication my apps using Firebase phone number authentication method, and one of the requirement is to add a SHA1 AND SHA256 ...
Jenadius Nicholaus's user avatar

1
2 3 4 5
37