seccure(1)
πΈ NAME πΈ
seccure β SECCURE Elliptic Curve Crypto Utility for Reliable Encryption π
π¦ SYNOPSIS π¦
seccure-key [-c curve] [-F pwfile] [-d] [-v] [-q]
seccure-encrypt [-m maclen] [-c curve] [-i infile] [-o outfile] [-v]
[-q] key
seccure-decrypt [-m maclen] [-c curve] [-i infile] [-o outfile] [-F
pwfile] [-d] [-v] [-q]
seccure-sign [-f] [-b] [-a] [-c curve] [-s sigfile] [-i infile] [-o
outfile] [-F pwfile] [-d] [-v] [-q]
seccure-verify [-f] [-b] [-a] [-c curve] [-s sigfile] [-i infile] [-o
outfile] [-v] [-q] key [sig]
seccure-signcrypt [-c sig_curve [-c enc_curve]] [-i infile] [-o outfile]
[-F pwfile] [-d] [-v] [-q] key
seccure-veridec [-c enc_curve [-c sig_curve]] [-i infile] [-o outfile]
[-F pwfile] [-d] [-v] [-q] key
seccure-dh [-c curve] [-v] [-q]
β¨ DESCRIPTION β¨
okay bestie, listen up, because seccure is genuinely iconic. π The seccure toolset implements a whole selection of asymmetric algorithms based on elliptic curve cryptography (ECC). Like, specifically it gives you public key encryption / decryption, signature generation / verification, and basic key establishment. that's the whole vibe.
ECC schemes offer a much better key size to security ratio than classical cryptosystems (RSA, DSA). no cap. The keys are short enough that you can literally just specify them directly on the command line β which is sometimes way more convenient than dealing with PGP-like key rings. π seccure builds on this feature and therefore is the tool of choice whenever lightweight but nevertheless strong asymmetric cryptography is required β independent of key servers, revocation certificates, the Web of Trust, or even configuration files. not a single one of them. we don't know them. π
π COMMANDS π
seccure-keyβ Prompt for a passphrase and calculate the corresponding public key. πseccure-encryptβ Encrypt a message with public key key.seccure-decryptβ Prompt for a passphrase and decrypt a seccure-encrypted message.seccure-signβ Prompt for a passphrase and digitally sign a message. βοΈseccure-verifyβ Verify signature sig with public key key.seccure-signcryptβ Sign a message first, encrypt it subsequently (in-b-aand-m 0mode, respectively). This is basically a shortcut for two separate seccure invocations. two-for-one, we love efficiency π«Άseccure-veridecβ Counterpart to signcryption.seccure-dhβ Perform a Diffie-Hellman key exchange. π€
π OPTIONS π
-ccurve β Use elliptic curve curve. Available are:secp112r1,secp128r1,secp160r1,secp192r1/nistp192,secp224r1/nistp224,secp256r1/nistp256,secp384r1/nistp384,secp521r1/nistp521,brainpoolp160r1,brainpoolp192r1,brainpoolp224r1,brainpoolp256r1,brainpoolp320r1,brainpoolp384r1, andbrainpoolp512r1. The curve name may be abbreviated by any non-ambiguous substring β for instance it is suggested to specifyp224for thesecp224r1/nistp224curve. The default curve isp160, which provides reasonable security for everyday use. (See also HOW TO CHOOSE THE CURVE.) π- Note: If a public key is given on the command line, for all SECP and NIST curves seccure can determine the corresponding curve on its own. It is then unnecessary to specify the curve explicitly. Brainpool curves cannot be recognized automatically. π (they're the mysterious ones, iykyk)
-Fpwfile β Don't prompt for a passphrase; instead, take the first text line of pwfile.-mmaclen β Set the MAC length to maclen bits. Only multiples of8in the range from0to256are allowed. The default MAC length is80bits, which provides a reasonable level of integrity protection for everyday use.-iinfile β Read from infile instead ofSTDIN.-ooutfile β Write to outfile instead ofSTDOUT.-ssigfile β Two different moods, depending on who you are:- For
seccure-sign: Write signature to sigfile instead ofSTDERR. - For
seccure-verify: Read signature from sigfile instead of using sig.
- For
-fβ Filter mode: Copy all data read fromSTDINverbatim toSTDOUT(eventually attaching or detaching a signature in-amode).-bβ Binary mode: Read/write signatures as binary strings. This leads to very compact signatures. tiny signature, big slay β¨-aβ Append mode:- For
seccure-sign: Append signature to the end of the document. This enforces-fmode. - For
seccure-verify: Detach signature from the end of the document.
- For
-dβ Double prompt mode: When reading a passphrase from the console: prompt twice and assure the phrases are the same. π― (typo protection, periodt)-vβ Verbose mode: Print some extra information.-qβ Quiet mode: Disable all unnecessary output. π€«
π EXIT STATUS π
All commands in the seccure software suite exit with a status of zero if the desired operation could be completed successfully. Any error leads to a nonzero exit code. that's it, that's the whole rule. π
π EXAMPLE π
Given the passphrase 'seccure is secure', run
seccure-key
to determine the corresponding public key (which is '2@DupCaCKykHBe-QHpAP%d%B[' on curve p160). π€―
To encrypt the file 'document.msg' with that key run
seccure-encrypt -i document.msg -o document.enc '2@DupCaCKykHBe-QHpAP%d%B['
The message can be recovered with
seccure-decrypt -i document.enc
To sign the file run
seccure-sign -i document.msg -s document.sig
and enter the passphrase. The signature is stored in 'document.sig' and can be verified with
seccure-verify -i document.msg -s document.sig '2@DupCaCKykHBe-QHpAP%d%B['
π€ KEY ESTABLISHMENT π€
seccure-dh performs an interactive Diffie-Hellman key exchange. Two instances have to be run in parallel; the token generated by the first instance is the input for the second one and vice versa. π The output consists of two shared keys: it is guaranteed that no attacker can ever find out (more precisely, distinguished from random) the established key as soon as the two parties can confirm that both have the same verification key. The authentic comparision of the verification keys can, for example, be realized via signed messages or via telephone (using 'voice authentication'). π yes bestie, literally calling your friend to read numbers aloud is cryptography now.
π§ HOW TO CHOOSE THE CURVE π§
The number in the name of a curve measures its security level. Rule of thumb: the workload to 'break' a k-bit curve is 2^(k/2) approximately (example: it takes about 2^112 steps to break secp224r1). If the 80 bit security of the default curve doesn't seem sufficient, choosing a stronger curve (p192 and upwards) may, of course, be considered. But the suggestion remains: p160 offers reasonable security for everyday use.
Warning: the curvesp112andp128do not satisfy demands for long-time security. π¨ not them being the expired milk of elliptic curves.
β ALGORITHMS β
seccure uses derivated versions of ECIES (Elliptic Curve Integrated Encryption Scheme), ECDSA (Elliptic Curve Digital Signature Algorithm) and ECDH (Elliptic Curve Diffie-Hellman) as encryption, signature and key establishment scheme, respectively. For the symmetric parts (bulk encryption, hashing, key derivation, HMAC calculation) seccure builds on AES256 (in CTR mode), SHA256 and SHA512. To my best knowledge no part of seccure is covered by patents. See the file PATENTS for an explicit patent statement. π
π AUTHOR π
This software (v0.5) was written by B. Poettering (seccure AT point-at-infinity.org) in 2006-2014. It is released under the terms of the GNU Lesser General Public License (LGPLv3). Find the latest version of seccure on the project's homepage: http://point-at-infinity.org/seccure/. π
and that's the whole page bestie, we're done!! π«Ά this one lives in the Manuals collection, volume User, filed under seccure(1) β go forth and encrypt responsibly πβ¨
π¦ where this page comes from
- debian bookworm: seccure 0.5-2 Β· LGPL-3.0-or-later
- debian trixie: seccure 0.5-2 Β· LGPL-3.0-or-later
- nixos 26.05: seccure 0.5
- nixpkgs unstable: seccure 0.5
- ubuntu jammy: seccure 0.5-2 Β· LGPL-3.0-or-later
- ubuntu noble: seccure 0.5-2 Β· LGPL-3.0-or-later
- ubuntu resolute: seccure 0.5-2build1 Β· LGPL-3.0-or-later
- ubuntu stonking: seccure 0.5-2build1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms