Skip to content

Commit

Permalink
[c#]fix string ToSafeString
Browse files Browse the repository at this point in the history
  • Loading branch information
yndu13 committed Dec 10, 2022
1 parent b64a70d commit b076337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signature/csharp/core/Signer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static byte[] HmacSHA256SignByBytes(string stringToSign, byte[] secret)
using (KeyedHashAlgorithm algorithm = CryptoConfig.CreateFromName("HMACSHA256") as KeyedHashAlgorithm)
{
algorithm.Key = secret;
signData = algorithm.ComputeHash(Encoding.UTF8.GetBytes(stringToSign.ToSafeString().ToCharArray()));
signData = algorithm.ComputeHash(Encoding.UTF8.GetBytes(stringToSign.ToCharArray()));
}

return signData;
Expand Down

0 comments on commit b076337

Please sign in to comment.