CLAES(1)
π CLAES(1) β the cryptlib tools girlies π
okay bestie, buckle UP, because claes is literally the conventional encryption tool that plays nice with gpg and openssl, and she is that girl. β¨
πΈ SYNOPSIS πΈ
claes [-debug] [-decrypt] [-cms | -openssl [-128]] [OPTION] [FILE | -]
π¦ DESCRIPTION π¦
so like, claes encrypts or decrypts data in OpenPGP format, CMS format and OPENSSL format, working from files or from standard input, all using a passphrase-based AES cipher. slay.
if you don't hand her a FILE or a -, she just reads from standard input. no drama.
β οΈ okay but real talk: if data is piped into claes, then the interactive password entry is not available. she needs the terminal, she can't work with a pipe and still ask you for a secret, bestie. π
the size of any internal input data is limited to 256 MByte. keep that in mind, no cap.
the default mode of operation is encryption, with the ciphertext stored base64-encoded in the OpenPGP format. and to decrypt base64-encoded or binary input data, you must use the -decrypt option. periodt.
all input data is processed AS IS and is treated internally as binary data with no changes. like, zero changes. she does not touch your bytes.
for every encryption or decryption, a user-provided passphrase is read from the terminal in which claes is run. so claes always works interactively. that's her whole thing. π«Ά
there is deliberately no public-key-cryptography built into claes. not a bug, an aesthetic. if you need those, please use clsmime and clkeys. π
β¨ OPTIONS β¨
-helpβ display this help and exit π-versionβ output version information and exit π-debugβ print debugging information tostderrπ₯-cmsβ produce CMS enveloped and encrypted data instead of OpenPGP (default) π-opensslβ produce encrypted data in openssl format usingpbkdf2for passphrase mangling π-128β forces the use of 128 bit AES keys in conjunction with-openssl(AES 256 bits is the default) β-decryptβ decrypts an encrypted message (default is encrypt). if data is compressed it will be de-compressed automatically π¦-binaryβ uses binary data both for input and output π-compressβ forces compression before data is encrypted πΈ
π NOTES π
full documentation lives at <https://senderek.ie/cryptlib/tools> π
this program depends on two packages providing the cryptlib shared object library and the python3-bindings to this library.
you can download both packages in RPM or DEB format at <https://senderek.ie/cryptlib/>
using FEDORA you can install the packages cryptlib and cryptlib-python3 directly from the repository. easy. π
in addition the program /bin/systemd-ask-password is needed to read sensible data from stdin. this program is part of the systemd package. iykyk.
π₯ INTEROPERABILITY π₯
π« gpg2
without any options, claes produces OpenPGP (base64-encoded) encrypted messages using AES-128.
she can decrypt any messages (ascii or binary) produced by GnuPG with the following ciphers: AES, AES192, AES256, 3DES and CAST-128. versatile queen. π
the option -binary causes the output written to a file with the .gpg extension. and because binary output does not compute the CRC24 checksum, it is much faster than the default mode and is recommended for the encryption of large files. β‘
π«Ά important: to mangle the password correctly, the option--s2k-digest-algo SHA256must be used withgpg.
from version 1.1 an MDC packet is added to every encryption in OpenPGP mode. integrity protection is also used with the CMS format. we love a secure girlie. π
π« openssl
in OpenSSL mode, claes writes encrypted messages in the proprietary OpenSSL format using AES256 as the default.
these messages can be decrypted with openssl:
openssl aes-256-cbc -pbkdf2 -d -a -in FILE.asc
the use of AES-128 can be forced by the additional option -128, both for encryption or decryption of OpenSSL messages. π
there is no compression available in OpenSSL mode. sorry bestie, that's just how it is. π
π« CMS
in CMS mode, claes produces PKCS#7 formated (base64-encoded) enveloped and encrypted messages. iconic. β¨
π FILES π
/usr/bin/systemd-ask-passwordβ this program is used to provide the passphrase based on a user's input. π/lib64/libcl.so.3.4.9β the cryptlib library. π¦/usr/lib/python3.1x/site-packages/cryptlib_py.soβ bindings to the cryptlib library used bypython3. π
π BUGS π
please report bugs to innovation@senderek.ie β she wants to hear it, fr fr. π
π AUTHORS π
claes is written by Ralf Senderek <innovation@senderek.ie>. Cryptlib is written and maintained by Peter Gutmann <pgut001@cs.auckland.ac.nz>
π COPYRIGHT π
Copyright Β© 2022 - 2026 Ralf Senderek. All rights reserved.
License BSD-3-Clause: <https://senderek.ie/cryptlib/bsd.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
π¦ SEE ALSO π¦
cryptlib, clsmime, clkeys
and that's the whole page, bestie!! πβ¨π¦πΈ this lil beauty lives in the Cryptlib Tools manual, dated February 2026, and she is CLAES(1) through and through. go encrypt something, you main character. ππ
π«Ά
π¦ where this page comes from
- fedora 43: cryptlib-tools 3.4.9.3-1.fc43
- fedora 43: cryptlib-tools 3.4.9.6-1.fc43 Β· Sleepycat and OpenSSL and BSD-3-Clause
- fedora 44: cryptlib-tools 3.4.9-2.fc44 Β· Sleepycat and OpenSSL and BSD-3-Clause
- fedora 44: cryptlib-tools 3.4.9.3-1.fc44
- fedora 44: cryptlib-tools 3.4.9.6-1.fc44 Β· Sleepycat and OpenSSL and BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms