Documentation
¶
Overview ¶
Package encryption provides encryption modules for oplog.Encryption.
Simple is compatible with @orbitdb/simple-encryption: a password is stretched with PBKDF2-SHA256 (32767 iterations, 16-byte random salt) into an AES-128-GCM key, and each ciphertext is salt || nonce || sealed data. Databases encrypted by either implementation can be read by the other.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Simple ¶
type Simple struct {
// contains filtered or unexported fields
}
Simple encrypts with a key derived from a password. It implements oplog.Encrypter and is safe for concurrent use.
Click to show internal directories.
Click to hide internal directories.