Documentation
¶
Overview ¶
Package envelope provides PBKDF2-SHA256 + AES-256-GCM password-based encryption in a versioned JSON format compatible with the Web UI crypto.js.
Empty password is accepted and produces a valid envelope — callers that want to skip encryption should check the password before calling Seal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongPassword = errors.New("envelope: wrong password")
ErrWrongPassword is returned by Open when decryption fails due to a bad password.
Functions ¶
func IsEnvelope ¶
IsEnvelope reports whether s looks like a sealed envelope JSON.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.