Blog

...

Dark mode toggle button without javascript – part 1

Written by Lucie Zdeňková on 2025-01-02

The following code snippets of HTML and CSS demonstrates a simple setup to enable dark mode using only HTML and CSS, without any JavaScript. This solution takes user preferences into account and allows the user to manually toggle between light and dark mode. Practical example can be seen in the header of this page.

...

GPG-Agent Socket Paths

Written by Dominik Pantůček on 2024-12-19

Originally working on a YubiKey support for Crypt4GH stream processing library turned out to become a work to fully support GnuPG at least on UNIX platforms. In recent GnuPG versions everything is handled by gpg-agent but an interesting problem arose - how to find its socket when using alternative GnuPG homedir?

...

Controlling Rclone in Racket

Written by Dominik Pantůček on 2024-12-05

Analyzing cryptographic systems usage with respect to how the users interact with it sometimes requires programmatically simulating their actions. It is no different with our recent work on rclone cryptographic keys handling. However we are lucky that Racket provides all the functionality we needed!

...

LibAssuan Binary S-Expressions

Written by Dominik Pantůček on 2024-11-21

Faced with the requirement of computing symmetric key from the result of Elliptic-Curve Diffie-Hellman key exchange according to a specification, the primary ingredient for such calculation is the result itself. Read on to see how Interesting things you may find if you need to use YubiKey's OpenPGP Card application as a foundational component of any solution.

...