C# – How to fix “Invalid algorithm specified” when signing with SHA256

A digital signature or digital signature scheme is a mathematical scheme for demonstrating the authenticity of a digital message or document. A valid digital signature gives a recipient reason to believe that the message was created by a known sender, and that it was not altered in transit. Digital signatures are commonly used for software distribution, financial transactions, and in other cases where it is important to detect forgery or tampering (From Wikipedia)”. If you are now working in information security fields, you should be familiar with this concept. Since version .Net Framework 3.5 SP1, Microsoft has supported for signing and verifing digital signature with SHA256. However maybe you’ll get an error “Invalid algorithm specified” if trying to sign data with SHA256. To reproduce the error, I would like to make a demo of code for signing with SHA256 in the code below

Continue reading C# – How to fix “Invalid algorithm specified” when signing with SHA256