Skip to content

Commit

Permalink
Add encrypted file example.
Browse files Browse the repository at this point in the history
  • Loading branch information
lapo-luchini committed Apr 20, 2024
1 parent 7cec5a1 commit 826f20c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/cms-password.p7m
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
This is a PKCS#7/CMS encrypted with passwod.
$ echo content | openssl cms -encrypt -pwri_password test -aes256 -outform pem -out examples/cms-password.p7m
-----BEGIN CMS-----
MIHYBgkqhkiG9w0BBwOggcowgccCAQMxgYOjgYACAQCgGwYJKoZIhvcNAQUMMA4E
CED/DSxXMtH6AgIIADAsBgsqhkiG9w0BCRADCTAdBglghkgBZQMEASoEEDIQbJMC
Sfb3LpwHduj/meQEMKwrwq5M4V0stztm6OUTAsFY2zKDY20SApwSEeEcAh9TM42E
1palnHeqHTBpC8pIpjA8BgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBByt+scPrdM
giR7WUOJyB3hgBDcD3UDMtZSep8X/3yy1/Yq
-----END CMS-----
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ <h1>ASN.1 JavaScript decoder</h1>
<option value="sig-p256-der.p7m">PKCS#7/CMS attached signature (DER)</option>
<option value="sig-p256-ber.p7m">PKCS#7/CMS attached signature (BER)</option>
<option value="sig-rsa1024-sha1.p7s">PKCS#7/CMS detached signature (old)</option>
<option value="cms-password.p7m">PKCS#7/CMS encrypted with password</option>
<option value="letsencrypt-x3.cer">X.509 certificate: Let's Encrypt X3</option>
<option value="ed25519.cer">X.509 certificate: ed25519 (RFC 8410)</option>
<option value="pkcs1.pem">PKCS#1 RSA key (RFC 8017)</option>
Expand Down

0 comments on commit 826f20c

Please sign in to comment.