Hi,
Can any one please help me on this. Is it possible to sign the message by using below process Generate the hash value by using SHA512 and sign it by using RSA SHA1
Below code is the example;
public string ComputeHashString(string Message)
{
string hex = string.Empty;
byte[] SignedhashValue;byte[] hashValue;
byte[] dataToSign = null; string PrivateKey = string.Empty;
try
{
//Convert data into bytes
dataToSign = Encoding.UTF8.GetBytes(Message);
//Get the Private key from .pem file
PrivateKey = GetKey();
using (RSACryptoServiceProvider rsa = new RSACryptoServiceProvider())
{
rsa.PersistKeyInCsp = false;
rsa.LoadPrivateKeyPEM(PrivateKey);
SHA512Managed sha512 = new SHA512Managed();
//Compute 512 Hash value of the converted bytes
hashValue = sha512.ComputeHash(dataToSign);
// Sign the hash
SignedhashValue = rsa.SignHash(hashValue, CryptoCo ...
Go to the complete details ...