Hardware Security SDK

August 22, 2025 ยท View on GitHub

An SDK for supporting security keys and smartcards on Android. Use cases include:

  • WebAuthn/FIDO2 passwordless logins
  • FIDO U2F Two-Factor Authentication
  • SSH Authentication using OpenPGP/PIV cards
  • Personal Identity Verification (PIV)
  • Full app database encryption using external hardware

Documentation

SDK

Guides

Caution

If you are using the Jitpack repo, use com.github.cotechde:hwsecurity instead of de.cotech:hwsecurity!

Open Source

This repository contains all parts of the Hardware Security SDK that have been released as open source.

This includes the following artifacts of the SDK:

Build ArtifactMin SDKRec. SDK
com.github.cotechde:hwsecurity:hwsecurity14
com.github.cotechde:hwsecurity:hwsecurity-intent-nfc14
com.github.cotechde:hwsecurity:hwsecurity-intent-usb14
com.github.cotechde:hwsecurity:hwsecurity-fido1419
com.github.cotechde:hwsecurity:hwsecurity-fido21419
com.github.cotechde:hwsecurity:hwsecurity-openpgp14
com.github.cotechde:hwsecurity:hwsecurity-piv14
com.github.cotechde:hwsecurity:hwsecurity-ui1419
com.github.cotechde:hwsecurity:hwsecurity-ssh14
com.github.cotechde:hwsecurity:hwsecurity-sshj14

Maven

This is the repository for open source projects:

License: GPLv3+

You can use our SDK under the terms of the GNU General Public license version 3 or later.

Other license?

If you need a different license, write us: support@hwsecurity.dev

We may be willing to release it as Apache v2 under certain conditions.

Missing parts?

Some parts of the SDK haven't been released as open source. If you are missing something, please let us know: support@hwsecurity.dev