GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ITSDevelopmentCore/hypervault-crypto: Offline cryptographic core of Hypervault: Argon2id, HKDF, AES-256-GCM, HV1 vault format, BIP-32/39, SLIP-10, air-gapped signing. Pure Kotlin, single dependency (Bouncy Castle).

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
gradle
gradle
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

hypervault-crypto

CI License

The open-source cryptographic core of Hypervault — an offline, zero-knowledge password manager and air-gapped crypto wallet for Android.

This library is pure Kotlin (JVM), has a single third-party dependency — Bouncy Castle — and performs no I/O and no networking. Everything here operates on byte arrays passed in by the caller.

Design principles

  1. No home-grown cryptography. Every primitive (Argon2id, AES-GCM, HKDF, Ed25519, X25519, secp256k1) comes from Bouncy Castle. This library only composes primitives into higher-level formats and protocols.
  2. Zero-knowledge, offline-first. No key material ever leaves the calling process; the library cannot make network calls by construction.
  3. Secrets live in zeroable ByteArrays, never in Strings (see memory/SecretBytes.kt).
  4. All randomness comes from SecureRandom (random/CryptoRandom.kt).
  5. Versioned formats. Every serialized artifact carries a schema version; migrations are forward-only.

The normative architecture document is docs/CRYPTO_WHITEPAPER.ru.md (Russian; an English translation is planned). Any divergence between that document and the code is a bug: either the code is fixed or the document is deliberately updated.

What's inside

Package Contents
kdf Argon2id (Bouncy Castle engine) and HKDF-SHA-256
cipher AES-256-GCM authenticated encryption
keys Master key hierarchy (master password + Secret Key → MUK → KEK → DEK), Secret Key format
vault HV1 — the encrypted vault container format
attachment Streaming encryption codec for file attachments
pin PIN-based key wrapping
share HVS1 — encrypted record sharing (X25519 key agreement, Ed25519 signatures, share fingerprints)
otp TOTP (RFC 6238) and Base32
wallet BIP-39 mnemonics, BIP-32 / SLIP-10 derivation, Base58 / Bech32, BTC / EVM / Solana addresses, air-gapped EVM transaction signing (RLP, EIP-1559, Keccak)
memory Zeroable secret byte containers
random CSPRNG access point

Key hierarchy (overview)

master password          Secret Key SK (128-bit, CSPRNG,
      │                   generated at vault creation)
      │ Argon2id                │
      ▼                         │
     MUK (256-bit) ─────────────┤
                                ▼
                  KEK = HKDF-SHA-256(MUK ‖ SK)
                                │  AES-256-GCM (key wrap)
                                ▼
                               DEK ──► vault payload (AES-256-GCM)

Both the master password and the device-bound Secret Key are required to derive the KEK — a copy of the vault file alone is not brute-forceable with a password guess only.

Usage

The library is consumed as a plain JVM/Android Kotlin dependency. Until artifacts are published to Maven Central, use a Gradle included build or a git submodule.

dependencies {
    implementation("its.development.hypervault:hypervault-crypto:0.1.0")
}

Building

JDK 11+ (toolchain is resolved automatically):

./gradlew build   # compile + run all tests

Tests include vectors from the relevant RFCs and BIPs (RFC 6238, BIP-32, BIP-39, SLIP-10, EIP-155/1559 among others).

Security

Do not report vulnerabilities in public issues. See SECURITY.md for the private disclosure process.

This library has not yet undergone an independent security audit. Until it does, treat it accordingly.

Contributing

See CONTRIBUTING.md. Note the strict scope: proposals that add network I/O, new third-party dependencies, or hand-rolled primitives will be declined.

License

Apache License 2.0 © ITS Development

About

Offline cryptographic core of Hypervault: Argon2id, HKDF, AES-256-GCM, HV1 vault format, BIP-32/39, SLIP-10, air-gapped signing. Pure Kotlin, single dependency (Bouncy Castle).

Topics

aes-gcmair-gappedargon2idbip32bip39cryptographykotlinoffline-firstpassword-managersecurity

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

29 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.