I am consuming a webservice nfse (electronic service invoice), and the nfse batch receiving function exists, the password is encrypted using the algorithm SHA1 .
The Manual thus exemplifies:
The password: "1234" should look like this: cRDtpNCeBiql5KOQsKVyrA0sAiA =
I came to use the code below:
public string SenhaHash(senha){
var hash = new SHA1CryptoServiceProvider();
var senhaBytes = Encoding.Default.GetBytes(senha);
var senhaHash = hash.ComputeHash(senhaBytes );
return senhaHash;
}
But the returned value is a byte array, which has nothing to do with what value I should get.