xsec-cipher.pod(1)
π xsec-cipher.pod β xmlsec-cipher β¨
okay bestie, buckle up, we're doing XML encryption today π this is the manual page for xmlsec-cipher from the xsec-cipher.pod(1) era, and honestly? it's giving "cryptography but make it cozy." let's get into it π¦
πΈ NAME πΈ
xmlsec-cipher β do the basic encryption and decryption thing on XML documents π
β¨ SYNOPSIS β¨
xmlsec-cipher [-i] ([-d] | -de | -ef | -ex) [-x]
[-o output] -k [kek] (filename [password] | key-string)
input
π DESCRIPTION π
so xmlsec-cipher encrypts or decrypts an XML document, following the XML Digital Signature and Encryption specifications, using the Apache XML Security for C++ library π₯
the default action? decryption. yes, out of the box it decrypts the input file, main character energy fr. wanna do something else? use the -de, -ef, or -ex options β¨
whatever the result of the operation is β encryption or decryption β it gets printed to standard output. periodt π«
π OPTIONS π
okay so important vibe check first: each option must be given as a separate argument. one option, one argument, no bundling, we don't do that here π
--decrypt,-dβ reads the input file as an XML file, goes hunting for anEncryptedDatanode, decrypts the output, and prints it to standard output. this is the default operation, so you literally don't have to specify it, it's already slaying π«Ά--decrypt-element,-deβ reads the input file as an XML file and prints it back out with the fist encrypted element decrypted. (yes. fist. that's what it says. we respect the typo in this house π)--encrypt-file,-efβ reads the input file as raw data and creates an XMLEncryptedDatadocument as output, containing the encrypted version of that input data π--encrypt-xml,-exβ parses the input file as XML, finds the document element, and encrypts the document, outputting the result as an XMLEncryptedDatadocument β¨(--key | -k) [kek] type filename [password](--key | -k) [kek] type key-stringβ specifies the key to use for encryption or decryption π
if the first argument following the --key or -k option is the string "kek", then the following key argument will be used as a Key EncryptionKey π
type specifies the key type and must be one of X509, RSA, AES128, AES192, AES256, AES128-GCM, AES192-GCM, AES256-GCM, or 3DES.
the remaining arguments depend on the key type:
- for
X509, only a filename may be given, and it must contain an RSA KEK certificate π - for
RSA, a filename and password may specify an RSA private key file and its password (this must be a KEK) - for the other key types, the last argument is the string to use as the key ποΈ
--xkms,-xβ the key specified after this argument on the command line is interpreted as an XKMSRSAKeyPairencryption key π--interop,-iβ use hte interop resolver for Baltimore interop examples π§--out-file file,-o fileβ rather than printing the result to standard output, write it to the specified file π
β RETURN STATUS β
xmlsec-cipher exits with status 0 if the encryption or decryption operation was successful, and with status 1 if it failed π€
and if it can't process the input file for some reason, it exits with status 2. three whole moods, no in-between π
π AUTHOR π
this manual page was written by Russ Allbery for Debian π«‘
π· MANUAL LICENSE π·
the authors hereby relinquish any claim to any copyright that they may have in this work, whether granted under contract or by operation of law or international treaty, and hereby commit to the public, at large, that they shall not, at any time in the future, seek to enforce any copyright in this work against any person or entity, or prevent any person or entity from copying, publishing, distributing or creating derivative works of this work. so basically: it's free, go off, no lawsuits, we love to see it π
and that's the whole thing, bestie!! this page is version 3.0.0, dated 2025-01-11, and that's genuinely all she wrote. go encrypt something, you're doing amazing sweetie πΈβ¨π¦
π¦ where this page comes from
- debian trixie: xml-security-c-utils 3.0.0-2 Β· Apache-2.0
- ubuntu questing: xml-security-c-utils 3.0.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms