Home Terms & Conditions Privacy Policy Documentation Contact About

← Return to SAML Test Tools

Compose, sign (XML Signature), and encrypt (XML Encryption) a SAML assertion — fully spec compliant with SAML 1.0, 1.1, or 2.0. Choose which optional elements the assertion carries, set the NameID, and add custom attributes; the identifier and every instant are populated with the current time. All crypto runs in your browser with the same XML security primitives the SAML Test Tools page uses. No key material leaves this page except into your browser's local storage, and the generated keys are throwaway test keys. Controls that do not apply to the selected assertion version, or to an option you have not enabled, are hidden.

Tip: click a pane's title to collapse/expand it.

1. Compose Assertion
Generated Assertion
Compliance Output
Assertion

Timestamps
Subject / NameID
Optional Elements
Add Custom SAML Attribute
NameURI PrefixTypeValue
No custom attributes.
2. Sign (XML Signature)

An enveloped XML-DSIG over the assertion: the Reference covers the whole assertion with the enveloped-signature and canonicalization transforms, and the <ds:Signature> is placed where the selected version's schema requires it.

Validate a Signature
3. Encrypt (XML Encryption)

W3C XML Encryption of the assertion with a random session key, which is itself RSA-wrapped with the recipient certificate. Encryption is always applied after the digital signature (sign-then-encrypt). SAML 2.0 carries the result in <saml:EncryptedAssertion>; SAML 1.x has no such element, so the bare <xenc:EncryptedData> is produced.

Decrypt an EncryptedAssertion