stephanruttloff / SignedXDocument

Wrapper class to handle enveloped xmldsig in C#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SignedXDocument

Wrapper class to handle enveloped xmldsig in C#.

Usage example

public XDocument SignMyDocument(XDocument document)
{
  var signedDocument = new SignedXDocument(document)
  {
      SignatureProperties = new List<XElement>
      {
          new XElement(@"Timestamp", DateTimeOffset.UtcNow)
      }
  };
  
  return signedDocument.Sign();
}

public bool VerifyMyDocument(XDocument signedDocument)
{
  return SignedXDocument.Verify(signedDocument);
}

About

Wrapper class to handle enveloped xmldsig in C#.

License:MIT License


Languages

Language:C# 100.0%