spake2plus 1.0.1 copy "spake2plus: ^1.0.1" to clipboard
spake2plus: ^1.0.1 copied to clipboard

A Dart library for SPAKE2+ protocol

spake2plus #

A Dart package for SPAKE2+, an Augmented Password-Authenticated Key Exchange (PAKE) protocol [RFC9383]. Supports Raspberry Pi OS and macOS for now.

Dependencies #

This package uses OpenSSL v3.0 and later via dart:ffi.

Usage #

A simple way to understand the package is to look at the example code and test cases. Even if you don't understand RFC9383, you can get a general idea of how to use it.

Supported PBKDF #

PBKDF Status
Scrypt [RFC7914]
Argon2id [RFC9106]

Supported ECC Curves and Hash, KDF, and MAC Algorithms #

G Hash KDF MAC Status
P-256 SHA256 HKDF-SHA256 HMAC-SHA256
P-256 SHA512 HKDF-SHA512 HMAC-SHA512
P-384 SHA256 HKDF-SHA256 HMAC-SHA256
P-384 SHA512 HKDF-SHA512 HMAC-SHA512
P-521 SHA512 HKDF-SHA512 HMAC-SHA512
edwards25519 SHA256 HKDF-SHA256 HMAC-SHA256
edwards448 SHA512 HKDF-SHA512 HMAC-SHA512
P-256 SHA256 HKDF-SHA256 CMAC-AES-128
P-256 SHA512 HKDF-SHA512 CMAC-AES-128

Getting Started #

Raspberry Pi OS #

  1. Install Dart/Flutter SDK.

  2. Install libcrypto:

    sudo apt-get install libssl-dev
    
  3. Check the path to libcrypto.so.

  4. Pass the library path into the Spake2plus class constructor.

macOS #

  1. Install Dart/Flutter SDK.

  2. Install openssl via Homebrew or MacPorts:

    brew install openssl@3 # Homebrew
    
  3. Check the path to libcrypto.dylib.

  4. Pass the library path into the Spake2plus class constructor.

1
likes
120
points
23
downloads

Publisher

verified publisherscenee.dev

Weekly Downloads

A Dart library for SPAKE2+ protocol

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi

More

Packages that depend on spake2plus