KPCLI(1)
β¨ KPCLI(1) β User Contributed Perl Documentation β¨
okay bestie, gather round π this is the manual page for kpcli, living in section 1 of the manual as User Contributed Perl Documentation. It's giving "tiny shell, big power." Let's go π¦
πΈ NAME πΈ
kpcli β A command line interface to KeePass database files. π
π DESCRIPTION π
So basically, kpcli is a command line interface (an interactive shell, queen behavior π) for working with KeePass database files. Wanna know what KeePass even is? Go look at http://en.wikipedia.org/wiki/KeePass β¨
This whole program was inspired by using kedpm -c, combined with the very real need to migrate over to KeePass. If you're curious (nosy, and honestly same π) you can read all about the Ked Password Manager at http://kedpm.sourceforge.net/.
π USAGE π
Just run the program and type help to learn how to use it. That's it. That's the tutorial. π«Ά
And if you wanna know about the command line options, run the program with --help as a command line option. Iconic, lowkey the most self-explanatory thing ever.
π§ INSTALLATION π§
Please see https://sf.net/p/kpcli/wiki/Installation%20instructions β go, read, install, slay β¨
π CAVEATS AND WORDS OF CAUTION π
bestie, this is the "listen carefully" section. Not scary, just real. π
π₯ Supported KeePass file formats π₯
Almost since inception (like, from day one basically), kpcli has supported KeePass v1 (*.kdb) files and KeePass KDBX v3 (*.kdbx) files, via File::KeePass. And then β starting with kpcli version 4.0 β kpcli ALSO supports KDBX v4 (*.kdbx) files, and it does that via File::KDBX. The glow up is real. π
Here are the supported formats and the modules used, laid out for you:
- KDB via
File::KeePass- The original KeePass format (
*.kdb)
- The original KeePass format (
- KDBX3 via
File::KeePass- The first KeePass XML format (
*.kdbx v3)
- The first KeePass XML format (
- KDBX4 via
File::KDBX- The second KeePass XML format (
*.kdbx v4)
- The second KeePass XML format (
The main author of kpcli primarily interoperability tests with KeePassX (http://www.keepassx.org/) and primarily uses KeePass v1 (*.kdb) files. Support for KDBX3 and KDBX4 files in kpcli is substantial, and many people use it daily, but it is not the author's primary use case. ngl, worth knowing so you know where the well-trodden path is πΎ
It is also the author's intent to maintain compatibility with v1 files, and so anyone sending patches for consideration for inclusion in future kpcli versions is asked to validate them with all file formats. All of them. Yes, even that one. fr fr.
π Filesystem Access and Tab Completion on Microsoft Windows π
Filesytem access and tab completion on Microsoft Windows uses forward slashes, so paths look like: c:/Users/hightowe/personal.kdb
File tab completion is also case insensitive, which seems cumbersome, but it matches Windows filesystem behavior. It's a vibe match, not a bug π¦
π Some versions of Term::ReadLine::Perl5 are incompatible π
Term::ReadLine::Perl5 versions 1.39-1.42 are incompatible with the Term::ShellUI module, which is core to kpcli. There is information about this in kpcli SF bug #18 (http://sourceforge.net/p/kpcli/bugs/18/).
The Term::ReadLine::Perl5 author submitted a Term::ShellUI patch to resolve the issue (https://rt.cpan.org/Ticket/Display.html?id=105375) and he also released Term::ReadLine::Perl5 version 1.43 which resolves it. So likeβ¦ upgrade, bestie. The fix literally exists. π
π No history tracking for KDBX3 (*.kdbx) files π
Recording entries' history in KDBX3 files is not implemented. Here's the tea:
History that exists in a file is not destroyed, but results of entry changes made in kpcli are not recorded into their history. Prior-to-change copies are stored into the Recycle Bin.
β οΈ Heads up: File::KeePass does not encrypt passwords of history entries in RAM, like it does for current entries. This is a small security risk that can, in theory, allow privileged users to steal your passwords from RAM, from entry history. π Not dramatic for drama's sake β it's just true, so protect your RAM access.
This limitation does not exist for KDBX4 files, where File::KDBX is used. β¨ (KDBX4 said "not on my watch")
π©Ή File::KeePass bug prior to version 2.03 π©Ή
Prior to version 2.03, File::KeePass had a bug related to some "unknown" data that KeePassX stores in group records. For File::KeePass < v2.03, kpcli deletes those unknown data when saving. π¬
Research in the libkpass (http://libkpass.sourceforge.net/) source code revealed that what early versions of File::KeePass classifies as "unknown" are the times for created/modified/accessed/expires as well as "flags" (id=9), but only for groups; File::KeePass handled those fields just fine for entries.
I found no ill-effect from dropping those fields when saving and so that is what kpcli does to work around the File::KeePass bug, if kpcli is using File::KeePass < v2.03. Workaround approved, no cap π«Ά
π€ BUGS π€
β¨οΈ Using Ctrl-D to Exit β¨οΈ
Versions of Term::ShellUI prior to v0.9. do not have the ability to trap Ctrl+D exits by the client program. I submitted a patch to remedy that and it made it into Term::ShellUI v0.9. Please upgrade if kpcli asks you to. It's asking for a reason bestie π
π― Multiple Entries or Groups With the Same Name in the Same Group π―
This program does not support multiple entries in the same group having the exact same name, nor does it support multiple groups at the same level having the same name, and it likely never will. KeepassX does support those. (KeepassX is built different, I guess π )
This program detects and alerts when an opened database file has those issues, but it does not refuse to save (overwrite) a file that is opened like that. Saves are actually safe (no data loss) as long as the user has not touched one of the duplicately-named items. So likeβ¦ don't touch the twins and you're fine. π
π Text::Shellwords::Cursor parse_line() infinite loop π
There is a bug in Text::Shellwords::Cursor::parse_line() that will send it into an infinite loop. To trigger it, one need only try to do tab completion with an escape character as the last character on the command line. One (1) tiny tab, one eternal loop. π
This perl one-liner demonstrates the problem:
$ perl -MData::Dumper -MText::Shellwords::Cursor \
-e '$p=Text::Shellwords::Cursor->new(); \
@t = $p->parse_line("open c:\\u"); print Dumper(\@t); \
@t = $p->parse_line("open c:\\"); print Dumper(\@t);'
The second call to parse_line() will enter an infinite loop. Yes, you read that right. The second one. π«
π AUTHOR π
Lester Hightower <hightowe at cpan dot org>
π LICENSE π
This program may be distributed under the same terms as Perl itself.
π CREDITS π
Special thanks to Paul Seamons, author of File::KeePass, and to Scott Bronson, author of Term::ShellUI. Without those two modules this program would not have been practical for me to author.
Thanks also to Charles McGarvey, that author of File::KDBX, without which support for the KDBX4 file format would not be possible. π
β¦and that's part 1, bestie β there's more coming, don't go anywhere π«Ά
π CHANGELOG π
okay bestie, buckle up because this is the entire glow-up timeline of kpcli β every version, every fix, every "oops we broke it again" moment. it's giving history, and it's long but lowkey iconic. πβ¨
- 2010-Nov-28 v0.1 β Initial release. π the origin story, periodt.
- 2010-Nov-28 v0.2 β Encrypt the master password in RAM. π
- 2010-Nov-29 v0.3 β Fixed master password encryption for
saveas. - 2010-Nov-29 v0.4 β Fixed code to work w/out
Term::ReadLine::Gnu.- Documented
File::KeePassv0.1 hierarchy bug.
- Documented
- 2010-Nov-29 v0.5 β Made
findcommand case insensitive.- Bugfix in
newcommand (path regex problem).
- Bugfix in
- 2010-Nov-29 v0.6 β Added lock file support; warn if a lock exists.
- 2010-Dec-01 v0.7 β Further documented the group fields that are dropped, in the CAVEATS section of the POD.
- Sort group and entry titles naturally. πΈ
- 2010-Dec-23 v0.8 β Worked with
File::KeePassauthor to fix a couple of bugs and then required >=v0.03 of that module.- Sorted
"/_found"to last in the root group list. - Fixed a "database changed" state bug in
cli_save(). - Made the
findcommand ignore entries in/Backup/. findnow offersshowwhen only one entry is found.- Provided a patch to
Term::ShellUIauthor to addeof_exit_hookand added support for it to kpcli.
- Sorted
- 2011-Feb-19 v0.9 β Fixed bugs related to spaces in group names as reported in SourceForge bug number 3132258.
- The
editcommand now prompts to save on changes. - Put
scrub_unknown_values_from_all_groups()calls back into place after realizing that v0.03 ofFile::KeePassdid not resolve all of the problems.
- The
- 2011-Apr-23 v1.0 β Changed a perl 5.10+ regex to a backward-compatable one to resolve SourceForge bug number 3192413. (yep, it says backward-compatable, we're keeping it π)
- Modified the way that the
/Backupgroup is ignored by thefindcommand to stop kpcli from croaking on multiple entries with the same name in that group.- Note: There is a more general bug here that needs addressing (see BUGS section).
- An empty title on
newentry aborts the new entry. - Changed kdb files are now detected/warned about.
- Tested against
Term::ShellUIv0.9, which has my EOF hook patch, and updated kpcli comments about it. Term::ShellUI'scomplete_history()method was removed between v0.86 and v0.9 and so I removed kpli's call to it (Ctrl-r works for history). (yes, kpli's β typo and all, iconic π«Ά)- Added the
"icons"command.
- Modified the way that the
- 2011-Sep-07 v1.1 β Empty DBs are now initialized to KeePassX style.
- Fixed a couple of bugs in the
findcommand. - Fixed a password noecho bug in the
saveascommand. - Fixed a
kdb_has_changedbug in thesaveascommand. - Fixed a
cli_openbug where it wasn'tcli_close'ing. - Fixed variable init bugs in
put_master_passwd(). - Fixed a false warning in
warn_if_file_changed().
- Fixed a couple of bugs in the
- 2011-Sep-30 v1.2 β Added the
"export"command.- Added the
"import"command. - Command
"rmdir"asks then deletes non-empty groups. - Command
"new"can auto-generate random passwords. π₯
- Added the
- 2012-Mar-03 v1.3 β Fixed bug in
clcommand as reported in SourceForge bug number 3496544. - 2012-Apr-17 v1.4 β Added key file support based on a user contributed patch with SourceForge ID# 3518388.
- Added
my_help_call()to allow for longer and more descriptive command summaries (forhelpcommand). - Stopped allowing empty passwords for
export.
- Added
- 2012-Oct-13 v1.5 β Fixed
"help <foo>"commands, that I broke in v1.4.- Command
"edit"can auto-generate random passwords. - Added the
"cls"and"clear"commands from a patch with SourceForge ID# 3573930. - Tested compatibility with
File::KeePassv2.03 and made minor changes that are possible with >=2.01. - With
File::KeePassv2.03, kpcli should now support KeePass v2 files (*.kdbx).
- Command
- 2012-Nov-25 v1.6 β Hide passwords (red on red) in the
showcommand unless the-foption is given.- Added the
--readonlycommand line option. - Added support for multi-line notes/comments; input ends on a line holding a single
".".
- Added the
- 2013-Apr-25 v1.7 β Patched to use native
File::KeePasssupport for key files, if theFile::KeePassversion is new enough.- Added the
"version"and"ver"commands. - Updated documentation as Ubuntu 12.10 now packages all of kpcli's dependencies.
- Added
--histfilecommand line option. - Record modified times on edited records, from a patch with SourceForge ID# 3611713.
- Added the
-aoption to theshowcommand.
- Added the
- 2013-Jun-09 v2.0 β Removed the unused
Clonemodule after a report thatCloneis no longer in core Perl as of v5.18.0.- Added the
statsandpwckcommands. - Added clipboard commands (
xw/xu/xp/xx). - Fixed some long-standing tab completion bugs.
- Warn if multiple groups or entries are titled the same within a group, except for
/Backupentries.
- Added the
- 2013-Jun-10 v2.1 β Fixed several more tab completion bugs, and they were serious enough to warrant a quick release. π
- 2013-Jun-16 v2.2 β Trap and handle
SIGINT(^Cpresses).- Trap and handle
SIGTSTP(^Zpresses). - Trap and handle
SIGCONT(continues after^Z). - Stopped printing found dictionary words in
pwck.
- Trap and handle
- 2013-Jul-01 v2.3 β More
readline()and signal handling improvements.- Title conflict checks in
cli_new()/edit()/mv(). - Group title conflict checks in
rename(). cli_new()now accepts optionalpath&|titleparam.cli_ls()can now list multiple paths.cli_edit()now shows the "old" values for users to edit, ifTerm::ReadLine::Gnuis available.cli_edit()now aborts all changes on^C.cli_saveas()now asks before overwriting a file.
- Title conflict checks in
- 2013-Nov-26 v2.4 β Fixed several
"perl -cw"warnings reported on 2013-07-09 as SourceForge bug #9.- Bug fix for the
clcommand, but in subcli_ls(). - First pass at Strawberry perl/MS Windows support.
- Enhanced support for
Term::ReadLine::Perl - Added support for
Term::ReadLine::Perl5
- Enhanced support for
- Added display of expire time for
show -a. - Added
-aoption to thefindcommand. - Used the new
magic_file_type()in a few places. - Added
generatePasswordFromDict()and"w"generation. - Added the
-voption to theversioncommand.- Added the
versionscommand.
- Added the
- Bug fix for the
- 2014-Mar-15 v2.5 β Added length control (
gNN) to password generation.- Added the
copycommand (andcpalias). - Added the
clonecommand. - Added optional modules not installed to
version -v. - Groups can now also be moved with the
mvcommand. - Modified
cli_cls()to also work on MS Windows. - Suppressed
Term::ReadLine::Gnuhint on MS Windows. - Suppressed missing termcap warning on MS Windows.
- Print a min number of
*s to not leak passwd length. - Removed unneeded use of
Term::ReadLine. - Quieted
"inherited AUTOLOAD for non-method"warns caused byTerm::Readline::Gnuon perl 5.14.x.
- Added the
- 2014-Jun-06 v2.6 β Added interactive password generation (
"i"method).- Thanks to Florian Tham for the idea and patch.
- Show entry's tags if present (KeePass >= v2.11).
- Thanks to Florian Tham for the patch.
- Add/edit support for tags if a v2 file is opened.
- Added tags to the searched fields for
"find -a". - Show string fields (key/val pairs) in v2 files.
- Add/edit for string fields if a v2 file is opened.
- Show information about entries' file attachments.
- 2014-03-20 SourceForge feature request #6.
- New
"attach"command to manage file attachments. - Added
"Recycle Bin"functionality and--no-recycle. - For
--readonly, don't create a lock file and don't warn if one exists. 2014-03-27 SourceForge bug #11. - Added key file generation to
saveasandexport.- 2014-04-19 SourceForge bug #13.
- Added
-expiredoption to thefindcommand. - Added
"dir"as an alias for"ls" - Added some additional info to the
statscommand. - Added more detailed OS info for Linux/Win in
vers. - Now hides
Meta-Info/SYSTEMentries. - Fixed bug with
SIGTSTPhandling (^Zpresses). - Fixed missing
refresh_state_all_paths()incli_rm.
- 2014-Jun-11 v2.7 β Bug fix release. Broke the
opencommand in 2.6. π - 2015-Feb-08 v2.8 β Fixed
cli_copybug; refresh paths and ask to save.- Fixed a
cli_mvbug; double path-normalization. - Fixed a path display bug, if done after a
cli_mv. - Protect users from editing in the
$FOUND_DIR. - Keep file opened, read-only, to show up in
lsof. - Added inactivity locking (
--timeoutparameter). - Added shell expansion support to
cli_ls, with the ability to manage _all_ listed entries by number. - Added shell expansion support to
cli_mv. - Added
[y/N]option to list entries after afind.
- Fixed a
- 2015-Jun-19 v3.0 β Added Password Safe v3 file importing; requires optional
Crypt::PWSafe3from CPAN.- Added
$FORCED_READLINEglobal variable. - Attachments sanity check; SourceForge bug #17.
- Endianness fix in
magic_file_type(); SF bug #19.
- Added
2016-Jul-30 v3.1 π
- ok so the
purgecommand EXISTS now, she's real - the
pwckcommand gotData::Password::passwdqcsupport, and it'll pick that overData::Passwordwhen it can β bestie preference, we love to see it - minor glow-ups in
cli_pwck() - applied SF patch #6 from Chris van Marle π«Ά
- handled the stuff pointed out in SF patch #7
- in
cli_save(), worked around aFile::KeePassbug- rt.cpan.org tik# 113391; https://goo.gl/v65HKE
- applied SF patch #8 from Maciej Grela
- optional better RNG; that's SF bug #30 from Aaron Toponce β¨
2017-Dec-22 v3.2
- added the
xpxcommand because SF ticket #32 asked for it - added autosave functionality (shadow copies) β your data gets a little understudy π
- fixed a bug in
new_edit_multiline_input()that was out here preventing blank lines between paragraphs, rude - fixed a typo in the
--helpinfo for--pwfile - fixed a small bug in subroutine
destroy_found()
2019-Aug-16 v3.3
openandsavecan now do key-only authentication, as requested in SF bug #35- stopped the
"multiple entries titled"warning from going off in the/_found/area, per the reports in SF bug #36 - fixed two bugs affecting Windows, as reported in SourceForge patch #11
/_foundentries now get marked as"*OLD"when listed, if they reside in a group named old. This addresses that whole thing where searches keep turning up "old" accounts.
2020-Apr-25 v3.4
- the
"*OLD"marking of/_foundentries now also catches ones that have any "old" group anywhere in the entire path - added
get_macos_version()and now macOS gets way more detail in theverscommand - tests for a new enough version of Clipboard if you're on macOS 10.15.0 or newer. See SF bug #41.
- added some
versreporting for a few OS-specific modules (the ones hanging around clipboard functionality) - added the
"ver -vv"and"vers -v"options for even more version-reporting verbosity - added
--pwsplcharsoption, as requested in SourceForge feature request #19 - fixed a few new
perl -cwwarnings - added
"use diagnostics"and cleaned up some items it pointed out - added Google Authenticator style 2FA-TOTP support, and with it came the
otpandxocommands π - added
--xpxsecsoption, as requested in SourceForge feature request #20
2020-Sep-19 v3.5
- added
--xclipseloption, in response to SourceForge bug #42 - fixed the inability to change fields back to empty, in response to SourceForge bug #43. The problem still exists for Password and Notes though β a good fix for those still eludes.
- support for using perl modules installed in one's home directory (
~/perl5) on Unix-like systems - added KeePass v2 (
*.kdbx) support toexport - the
showcommand now redacts 2FA keys in Comments unless you specify both-aand-f - fixed an issue in
cli_saveas()where the*.lockfile from the saveas source file was stranded. Also fixed not properly switching to v2 behavior when saveas-ing a v1 file to v2 (*.kdbto*.kdbx). - enhanced
load_lsb_release()so it'll work on more Linux operating systems - fixed a couple of
"vers -v"bugs on mswin32 - fixed a couple of bugs in the
statscommand - minor, non-functional changes to prevent warnings in
new_edit_single_line_input()andcli_pwck() - replaced checks of
$OPTIONAL_PM{<foo>}->{loaded}with simpler calls tois_loaded(<foo>) - added several
defined()tests that"use diagnostics"pointed out on an older perl that I used (v5.10.1)
2020-Oct-14 v3.6
- you can now pass multiple
--commandparameters and they execute in order, per SourceForge feature request #22 - do a
cli_ls()whenfindreturns only one result and the user asks to show it. Fixes SourceForge bug #44. - added
--pwscminand--pwscmaxcommand line options, per SourceForge feature request #23 - added
--nopwstarsper SF feature request #24 - added
--pwwordsand--pwlencommand line options - word-based generated passwords respect
--pwlen - added
cli_passwd()to change the DB password - only show the help message when requested by
--help, not also when there are command line option errors - the
cdcommand with no specified path now goes to/ - improved
open_kdb()error reporting after seeing https://bugzilla.redhat.com/show_bug.cgi?id=1820134 and learning of the new kdbx v4 file format that File::KeePass does not support.- Reference: https://keepass.info/help/kb/kdbx_4.html
- new message requesting kpcli development sponsorship (besties, she needs funding πΈ)
- removed the PREREQUISITES section from the POD and replaced it with INSTALLATION, which just refers the reader to the "Installation instructions" in the kpcli project Wiki on SourceForge
- minor POD fixes
2022-May-19 v3.7
- added
my_complete_onlyfiles()and used it to work around Term::ShellUI problems with file tab completion on Windows, which now works properly β¨ - file tab completion is now case-insensitive on mswin
- now use
my_complete_onlyfiles()for all platforms, after discovering some other Term::ShellUI file tab completion problems, even on Linux cli_pwck()now supportsData::Password::zxcvbnand it's the preferred pwck module, if it's installed- added
get_dirs()to the BEGIN block and stopped using File::Find after realizing that it somewhat defeated the purpose that I was trying to accomplish there - added
--nopwprintper SF bug report #44 - added the
-foption to theautosavecommand - fixed a
--nopwstarsbug per SF bug report #47 - enhanced validation of the
--xclipseloption - minor POD fixes
- added
kdb_savetmp-related code tocli_save()to guard against problems like the one reported in Debian bug report #1006917
2022-Jul-21 v3.8
- added
get/setcommands per SF feature request #27 - added version detection for KDBX files
- added the KDBX version in the
statsoutput - now reports that KDBX4 files cannot be opened
- can now import KDBX4 files using KeePassXC
- added
deny_if_readonly()to theimportcommand
22-Jul-21 v3.8.1
- fixed the
get/setcommands bug. See SF feature req #27.
2023-Aug-21 v4.0
- added KDBX4 file format support via File::KDBX ππ
- added the
newdbandrerootcommands - added history count (
Hist#) toshow -a - now supports KeePassXC-style
"otp"strings for TOTP - a group can now be the target of a
copy - improved tab completion for groups and entries
- fixed a bug in
open_kdb()re:saveaswith--pwfile - fixed a minor path resolution bug in
cli_rmdir() - moved the BEGIN block up. Should have been done that way all along, but the change was prompted by: https://github.com/chazmcgarvey/File-KDBX/issues/3
- modified attachment functionality per SF bug #49
- added autosave warnings when the KDB/KDBX file types or extentensions do not match the master
- a
--pwfilefile must exist or exit with error - fixed SF bug #50 reported in
kpcli-4.0-beta8
2024-May-23 v4.1
- fixed SourceForge bug #51
- fixed a couple of bugs, similar to SF #51
- fixed SourceForge bug #52
- added UTF-8 support in response to SF #53 π
- added
mktestdbandutf8commands - added OTP support to the
setcommand for KDBX4 - added OTP support to the
getcommand for KDBX4 - fixed
PrintSupportMessage()-related bugs - after
reroot, auto-cd to the new root group - improved the
"help find"and"help purge"messages - allow filename parameter without
--kdb=<filename> - wrapped
decode_base32()inside ofget_totp()in aneval()to better handle invalid Base32 strings
24-Sep-07 v4.1.1
- fixed SourceForge bug #55 for perl >= 5.39.1
24-Sep-19 v4.1.2
- fixed SourceForge bug #56
25-Jan-23 v4.1.3
- fixed
cli_save()bug for KDBv1 files - a few minor UTF-8 related bug fixes
- fixed KDBXv3 protected strings display bug, reported as part of SourceForge feature request #31
- added
"protection toggling"for strings, as requested as part of SourceForge feature request #31 π₯
π TODO ITEMS π
okay so this is the wishlist, the "one day bestie" section, the notes-to-self that the author left in the open π Some of it is vibe, some of it is β¨realβ¨. Here's the whole thing, no edits:
- bestie, there's still work that might be needed to protect any standard KDBX4 strings beyond just the password β like
$kdbx->protect_title,$kdbx->protect_username,$kdbx->protect_url,$kdbx->protect_notes. rn the suspicion is that databases with those fields set are not properly supported (yep, that's a bug in kpcli π), but the author literally could not figure out how to make such a database in KeePassXC, soβ¦ it's probably uncommon. lowkey a mystery π΅οΈ - consider adding a
dbseccommand so you can pick stuff like the Encryption Algorithm, the Key Derivation Function, the Transform Rounds, etc. Right now kpcli respects these (doesn't change them π ) but you have to set them in other tools, like KeePassXC. - unlike File::KeePass, File::KDBX auto-creates history records when entries get modified π€―. So: consider adding a command to prune history. Also consider auto-enforcing
$kdbx->history_max_items,$kdbx->history_max_size, and$kdbx->maintenance_history_days.- There are potential security implications in File::KeePass π¬.
- Related, consider adding a
purgecommand for that history.
- consider adding support for setting the Expires date/time on entries when creating or editing them π .
- consider enhancing
pwckwith these features: - inspired by tools such as:
- consider adding support for TOTP with digest algorithms other than just SHA-1, like SHA-256 and SHA-512 π. Also consider letting the TOTP time be something other than 30 seconds, and the length of the OTP be something other than six digits. None of those options are broadly used today, but when writing the TOTP code, the author stumbled across a few. It wasn't implemented right away mostly because Authen::OATH is not very condusive to using other digest algorithms. For future reference, the strings would likely be constructed like this:
2FA-TOTP-SHA256: TheBase32SecretKeyProvided (30, 10)
- This code may prove useful if the author decides not to use Authen::OATH:
https://github.com/j256/perl-two-factor-auth/blob/master/totp.pl - consider adding an option related to tags within v2 files π·οΈ.
- Perhaps with a
--tagsoption tofind.
- Perhaps with a
- consider adding KeePass 2.x style multi-user synchronization π―.
- consider adding searches for created, modified, and accessed times older than a user supplied time β°.
π OPERATING SYSTEMS AND SCRIPT CATEGORIZATION π
π§ Unix-like
- Originally written and tested on Ubuntu Linux 10.04.1 LTS.
- As of version 4.0, development is done on Linux Mint 21.1.
- Known to work on many other Linux and *BSD distributions, and kpcli is packaged with many distributions now-a-days π.
- Known to work on macOS and is packaged in Homebrew (brew.sh) π.
- Will use modules installed under
~/perl5/. When not given root permission, tools likecpanminstall to~/perl5/by default.
πͺ Microsoft Windows
- As of v2.4, Microsoft Windows is also supported π.
- As of v3.5, compiled on Strawberry Perl 5.32.0.1 on Windows 10.
π¦ SCRIPT CATEGORIES
"UNIX/System_administration", "Win32/Utilities"
and that's a wrap on the whole page bestie, you read all of it, main character energy fr fr ππ
little sign-off tea for you: this was perl v5.40.1, dated 2026-07-19, and yes it's KPCLI(1) β she's a section 1 girlie and she ate π¦β¨ goodbye, go protect ur passwords π«Ά
π¦ where this page comes from
- ubuntu stonking: kpcli 4.1.3-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms