ENCRYPTTOTPSECRETS(1)
π ENCRYPTTOTPSECRETS(1) π
okay bestie, pull up a chair, because we're about to talk about encryptTotpSecret β a lil tool from the User Contributed Perl Documentation corner of the LemonLDAP::NG universe, and honestly? she's giving migration-glam. π
β¨ NAME β¨
encryptTotpSecret β a whole tool whose entire job is encrypting the TOTP secrets you already have lying around. yes. existing ones. not just the new ones. obsessed. π
πΈ SYNOPSIS πΈ
encryptTotpSecret [options]
that's it. that's the vibe. options go in, magic comes out. π¦
π§ DESCRIPTION π§
so here's the tea β β this script is a migration tool. you use it after you've flipped on TOTP secret encryption over in the Manager.
because here's the thing: turning encryption on in the config only protects secrets that get registered from that point on. your legacy secrets? still sitting there unencrypted, not a care in the world. π
this script goes and makes sure those existing secrets actually get encrypted, instead of only the freshly registered ones. she's doing the cleanup nobody else wanted to do. main character energy, fr fr. π
π«Ά OPTIONS π«Ά
--help,-hβ prints a quick lil help message and dips. short, sweet, iconic. β¨--dry-run,-nβ stops the script from saving any modifications to the session database. it'll look, it'll think, it'll change nothing. perfect for when you're nosy but not committed. π--update,-uβ by default, secrets that are already encrypted get skipped by the script. use this to force already-encrypted secrets to be decrypted, then re-encrypted using a different key (or just decrypted). yes, that's the whole point of the flag. slay. π₯--old-key,-oβ the key used to decrypt secrets in--updatemode.
by default, the totp2fKey or key LemonLDAP::NG configuration parameters are used. π
--new-key,-kβ the key used to encrypt secrets. use-u -k DECRYPTto decrypt secrets instead. (yes,DECRYPTliterally is the value you pass. iykyk.)
by default, the totp2fKey or key LemonLDAP::NG configuration parameters are used. π
--force,-fβ encrypts existing TOTP secrets even if encryption is disabled in the configuration. bold. fearless. she does not read the config for permission. π€--verbose,-vβ cranks up the level of detail the script gives you. use it when you want the full commentary track. ποΈ
π SEE ALSO π
go look. the lore is deep. π
π AUTHORS π
Maxime Besson, <maxime.besson@worteks.com>
give her her flowers. π
π BUG REPORT π
use the OW2 system to report a bug or ask for features: <https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/issues>
found something cursed? tell them, don't just suffer in silence bestie π
π DOWNLOAD π
Lemonldap::NG is available at <https://lemonldap-ng.org/download>
go get it. it's free. it's right there. π«Ά
π COPYRIGHT AND LICENSE π
Copyright (C) 2008-2016 by Xavier Guimard, <x.guimard@free.fr> Copyright (C) 2008-2016 by ClΓ©ment Oudot, <clem.oudot@gmail.com>
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
no warranty, no promises, no refunds β that's the deal, bestie. read the license, she's not bluffing. β οΈ
okay and that's the whole page!! π written for perl v5.42.3, dated 2026-09-24 β remember that date, it's her birthday. go forth and encrypt those secrets, you absolute legend. periodt. π β¨
π¦ where this page comes from
- fedora 43: lemonldap-ng-common 2.23.4-1.fc43 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- fedora 44: lemonldap-ng-common 2.23.4-1.fc44 Β· GPL-2.0-or-later AND MIT AND GPL-3.0-or-later AND OFL-1.1-RFN
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms