Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

296.6. keysmith-26.08.2

One-time password generator — TOTP and HOTP codes for two-factor sign-in, kept encrypted

26.08.2-1 · GPL-3.0-or-later · 7.9 SBU · 1.6 MiB, 10 files · 44_apps, 364 of 422 · ports/core/security/keysmith

Homepage: https://apps.kde.org/keysmith/

Keysmith generates one-time passwords for two-factor sign-in: time-based (TOTP) and counter-based (HOTP) codes, added by hand, from an otpauth:// link or by scanning the QR code a website shows. The accounts are kept encrypted with libsodium under a password asked for when the application opens. It is a Kirigami application from KDE’s convergent set.

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtmultimedia, kirigami, kcoreaddons, ki18n, kconfig, kirigami-addons, kdbusaddons, kwindowsystem, prison, libsodium, openssl, qqc2-desktop-style.

Required by (1): kde-gear-utilities.

Sources: keysmith-26.08.2.tar.xz (248.1 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install keysmith'

build.sh:

cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

Programs: keysmith.

Directories: /usr/share/licenses/keysmith.

ecm_find_qmlmodule(org.kde.prison.scanner REQUIRED) makes the QR scanner of prison a requirement of the configure; it reads the camera through qt6-qtmultimedia. libsodium is the system copy: upstream builds its own only when BUILD_EXTERNAL is set, which this recipe never sets. The D-Bus interface, with kdbusaddons and kwindowsystem, is built whenever the target is neither Android nor Haiku; it makes Keysmith a single instance, so an otpauth:// link opened while it runs reaches the running copy.

qqc2-desktop-style is REQUIRED by the configure, though upstream marks it TYPE RUNTIME: the program links nothing of it and selects the org.kde.desktop Qt Quick style at start-up.