What hashing algoritm is actually used in the below code?
Is it MD5, SHA-1, SHA-256, SHA-384, SHA512...?
public class X509
{
public static void Main()
{
// The path to the certificate.
string Certificate = "Certificate.cer";
// Load the certificate into an X509Certificate object.
X509Certificate cert = X509Certificate.CreateFromCertFile(Certificate);
// Get the value.
byte[] results = cert.GetCertHash();
}
}
Michel Gallant - 18 Oct 2005 22:46 GMT
oX509Certificate.GetCertHash() returns the SHA1 hash of the binary DER form of the certificate.
- Mitch Gallant
What hashing algoritm is actually used in the below code?
Is it MD5, SHA-1, SHA-256, SHA-384, SHA512...?
public class X509
{
public static void Main()
{
// The path to the certificate.
string Certificate = "Certificate.cer";
// Load the certificate into an X509Certificate object.
X509Certificate cert = X509Certificate.CreateFromCertFile(Certificate);
// Get the value.
byte[] results = cert.GetCertHash();
}
}