Documentation
¶
Overview ¶
Package scrypt mirrors the gem's Age::Scrypt namespace: passphrase-based age recipients and identities. An scrypt recipient must be the only recipient of a message.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity struct {
*fage.ScryptIdentity
}
Identity decrypts a passphrase-encrypted message (Age::Scrypt::Identity). Its accepted maximum work factor can be tuned with SetMaxWorkFactor. It satisfies age.Identity.
func NewIdentity ¶
NewIdentity builds a passphrase identity, mirroring Age::Scrypt::Identity.new(passphrase). The passphrase must not be empty.
type Recipient ¶
type Recipient struct {
*fage.ScryptRecipient
}
Recipient encrypts a message under a passphrase (Age::Scrypt::Recipient). Its work factor (log2 of the scrypt cost) can be tuned with SetWorkFactor. It satisfies age.Recipient and must be the sole recipient of a message.
func NewRecipient ¶
NewRecipient builds a passphrase recipient, mirroring Age::Scrypt::Recipient.new(passphrase). The passphrase must not be empty.