Questions tagged as 'sha1'

1
answer

Why is the reduced version of git SHA1 code 7 characters long by default?

I'm studying Git and I came across the command cherry-pick , which retrieves a specific commit . The parameter passed to this command is the hash generated to identify only that commit . However, in the documentation examples, a redu...
asked by 07.08.2017 / 15:04
1
answer

How to calculate the XML DigestValue?

When signing some XML, the signer generates the DigestValue tag containing a hash. I can generate the digest value with a digital certificate, but I would like to generate this hash without having to have a certificate ... I have seen in some...
asked by 15.12.2013 / 19:11
1
answer

SHA1CryptoServiceProvider and SHA1Managed return different results

I need to encrypt a string using SHA1. I was able to encrypt using the SHA1 class in this way: public string CriptSha1(string secret) { string result = ""; byte[] key = System.Text.Encoding.UTF8.GetBytes(secr...
asked by 26.06.2015 / 23:10
1
answer

how to decrypt md5 and sha1? [duplicate]

I'd like to know how to decrypt md5 and sha 1 I'm using both to enter the user's password in the database, but I have to make a page for who forgot the password and if I only play the value that In the bank it will send the entir...
asked by 18.12.2015 / 17:38
3
answers

Rejection NFSe SP Signature of XML data differs from Calculated SHA1 VB.net

I am signing the following string: 339575410000100000000000120150413NI00000000000005000000000000002502917N207293716000260 Using the following code: ' Obtem o certificado Dim CertificadoDig As X509Certificate2 = ObtemCertificado("")...
asked by 13.04.2015 / 15:08
1
answer

error when comparing sha1 in php

I am doing a login system but comparing the password that the user typed with the one that is in the error database. When the user registers in the system applies two sha1 type: sha1(sha1($_POST['senha'])); But when I compare so...
asked by 08.07.2016 / 21:15
1
answer

How to validate a signature with a private key?

I get an HTTP request that comes in the HEADER a signature (SHA1). I have, stored in a String, a private key. I need to generate the signature between the BODY of the HTTP request and my key and compare it with the signature that comes in the HE...
asked by 13.11.2015 / 14:44
2
answers

Is it possible to use $ _POST within sha1? or other type of encryption?

I'm doing form comparison using sha1 as follows sha1($_POST['txtEmpresa'] + $_POST['txtFornecedor'] + $_POST['txtDocumento'] + $_POST['txtValor'] + $_POST['txtVencimento']); Is there any way to reduce this code to look like this? sha1($_P...
asked by 11.05.2017 / 16:37
1
answer

Map loads only on my device

I have a map in a fragment. I already solved all as key questions, I created the signed apk, it is not what I want to do and I did not put any google developer console, with the name of the project. A created key I placed in the manifest of the...
asked by 08.11.2016 / 00:02
3
answers

How to use SHA1 in login with PHP taking parameters?

I created a password using SHA1 as password encryption, where the password parameter is as follows: $senha = sha1($_GET['senha']); However, I'm not sure how to decrypt, even passing parameter, the sha1() . I have the following example...
asked by 28.07.2017 / 00:58