mobidrm(1)
π mobidrm π β like, the manual page, bestie
okay so this is mobidrm, from section 1 of the User's Reference Manual. she's a little utility that encrypts and decrypts MOBI format ebook files and honestly? she ate. π
β¨ NAME β¨
mobidrm β Utility for decryption and encryption of MOBI format ebook files. π
πΈ SYNOPSIS πΈ
mobidrm -d [-o dir] [-p pid] [-s serial] file
mobidrm -e [-o dir] [-s serial] [-f date] [-t date] file
mobidrm [-hv]
π¦ DESCRIPTION π¦
so. the program encrypts or decrypts MOBI files using the DRM schemes they use on eInk devices, and it's powered by the libmobi library. periodt. π
it can encrypt documents targeting a particular device by using its serial number, OR it can apply a generic DRM scheme that targets, like, all the supported readers. either way, slay.
optionally the encryption can be valid only during a chosen period. Kindles require both start and end date to be set. this tool, though? she lets you specify only one date (start or end). in that case the other date gets automatically set to the lowest (1970-01-01) or largest (10136-02-16) valid value respectively. no cap, that's a real year. π
in case of hybrid files, mobidrm separately encrypts both enclosed parts and produces two files: mobi for legacy format and azw3 for KF8 format. two for the price of one, iconic. π
the program also decrypts documents. one must supply device serial number or document PID if DRM was applied for specific device. iykyk.
invoked without arguments, it prints a usage summary and exits. bye. π
a list of flags and their descriptions. here we go bestie, this is the long part:
π Decryption flags
-dβ Decrypt. This flag must be set in order to decrypt document.-ppid β Set optional decryption pid (may be specified multiple times).-sserial β Set optional device serial number (may be specified multiple times).
π₯ Encryption flags
-eβ Encrypt. This flag must be set in order to encrypt document.-fdate β Set optional validity period from date formatted asyyyy-mm-dd. Document will not be valid before this date.-sserial β Set optional device serial number. If not set, document will be encrypted with generic reader key. This flag may be specified multiple times to target multiple devices.-tdate β Set optional validity period to date formatted asyyyy-mm-dd. Document will expire after this date.
β Common flags
-odir β Save output to dir folder.-hβ Show usage summary and exit.-vβ Show version and exit.
π EXAMPLES π
the following command decrypts document using given serial number. Decrypted output will be saved to /tmp folder.
% mobidrm -d -s B001XXXXXXXXXXXX -o /tmp example.mobi
the following command decrypts document trying multiple PIDs.
% mobidrm -d -p XXXXXXXXX1 -p XXXXXXXXX2 example.mobi
the following command encrypts document targeting two devices using their serial numbers. Document will be readable only on those devices. (locked in, lowkey π)
% mobidrm -e -s B001XXXXXXXXXX01 -s B001XXXXXXXXXX02 example.mobi
the following command encrypts document for device with given serial number. Document will only be valid within given period (inclusive).
% mobidrm -e -s B001XXXXXXXXXX01 -f 2021-01-01 -t 2021-01-31
example.mobi
π RETURN VALUES π
the mobidrm utility returns 0 on success, 1 on error. simple as that, bestie. β¨
π COPYRIGHT π
Copyright (C) 2021-2022 Bartek Fabiszewski.
Released under LGPL version 3 or any later (same as libmobi).
π WEB SITE π
Visit http://www.fabiszewski.net for details.
π§ DIAGNOSTICS π§
For diagnostics libmobi must be configured with --enable-debug option.
like, don't forget this one or you'll be sitting there with zero clues, and that's not the vibe. π
π SEE ALSO π
k that's the whole thing, ily, go encrypt something responsibly π«Ά this was Unix, February 16, 2022 β thanks for coming to my ted talk, mwah π
π¦ where this page comes from
- debian trixie: libmobi-tools 0.12+dfsg-1 Β· LGPL-3.0-or-later
- ubuntu questing: libmobi-tools 0.12+dfsg-1build1
- ubuntu resolute: libmobi-tools 0.12+dfsg-1build2 Β· LGPL-3.0-or-later
- ubuntu stonking: libmobi-tools 0.12+dfsg-1build2 Β· 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