Documentation
¶
Overview ¶
QuarkDash Passphrase Implementation
@git https://github.com/devsdaddy/quarkdash-go @version 1.2.1 @author Elijah Rastorguev @build 1023 @website https://dev.to/devsdaddy @updated 28.08.2026
Index ¶
- func Argon2idSync(passphrase string, salt []byte, memoryCost, timeCost, dkLen int) []byte
- func Argon2idSyncBytes(passphrase, salt []byte, memoryCost, timeCost, dkLen int) []byte
- func DeriveKeyForQuarkDash(passphrase string, salt []byte, opts PassphraseOptions) (sessionKey, macKey []byte)
- func DerivePassphrase(passphrase string, opts PassphraseOptions) (key, salt []byte)
- func GenerateSalt(length int) []byte
- func PBKDF2Sync(passphrase string, salt []byte, iterations, dkLen int) []byte
- func PBKDF2SyncBytes(passphrase, salt []byte, iterations, dkLen int) []byte
- type PassphraseOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Argon2idSync ¶
Argon2idSync - Argon2id-lite for string
func Argon2idSyncBytes ¶
Argon2idSyncBytes - Argon2id-lite for bytes
func DeriveKeyForQuarkDash ¶
func DeriveKeyForQuarkDash(passphrase string, salt []byte, opts PassphraseOptions) (sessionKey, macKey []byte)
DeriveKeyForQuarkDash derive 64B (32B session + 32B MAC) for QuarkDash.
func DerivePassphrase ¶
func DerivePassphrase(passphrase string, opts PassphraseOptions) (key, salt []byte)
DerivePassphrase - universal derive (pbkdf2/argon2id).
func GenerateSalt ¶
GenerateSalt generates a salt with length (by default 32).
func PBKDF2Sync ¶
PBKDF2Sync - PBKDF2 for password string
func PBKDF2SyncBytes ¶
PBKDF2SyncBytes - PBKDF2 for bytes based password
Types ¶
Click to show internal directories.
Click to hide internal directories.