Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgeX25519 ¶
type AgeX25519 interface { GeneratePubKeyAndPrivateKey(pubPrefix, privatePrefix string) (pub, private string, err error) EncryptByPubKeyWithPrefix(in []byte, publicKey, prefix string) (out []byte, err error) DecryptByPrivateKeyWithPrefix(in []byte, privateKey, prefix string) (out []byte, err error) // EncryptByPubKeyWithPrefixBeforeBase64 encrypt and then base64 encode, if encoding is nil, it will use base64.RawStdEncoding, this method is usually used to handle messy code EncryptByPubKeyWithPrefixBeforeBase64(in []byte, publicKey, prefix string, encoding *base64.Encoding) (out []byte, err error) // DecryptByPrivateKeyWithPrefixAfterBase64 base64 decode and then decrypt, if encoding is nil, it will use base64.RawStdEncoding, this method is usually used to handle messy code DecryptByPrivateKeyWithPrefixAfterBase64(in []byte, privateKey, prefix string, encoding *base64.Encoding) (out []byte, err error) // EncryptAllFileInDirByPubKeyWithPrefixBeforeBase64ThenRotateWrite encrypt file and base64 encode and rotate write in dir one by one, if encoding is nil, it will use base64.RawStdEncoding EncryptAllFileInDirByPubKeyWithPrefixBeforeBase64ThenRotateWrite(dir, backupDir, publicKey, prefix string, encoding *base64.Encoding) (err error) // DecryptAllFileInDirByPrivateKeyWithPrefixAfterBase64ThenRotateWrite base64 decode and decrypt file and rotate write in dir one by one, if encoding is nil, it will use base64.RawStdEncoding DecryptAllFileInDirByPrivateKeyWithPrefixAfterBase64ThenRotateWrite(dir, backupDir, privateKey, prefix string, encoding *base64.Encoding) (err error) }
func NewAgeX25519 ¶
func NewAgeX25519() AgeX25519
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
age
Package age implements file encryption according to the age-encryption.org/v1 specification.
|
Package age implements file encryption according to the age-encryption.org/v1 specification. |
age/internal/bech32
Package bech32 is a modified version of the reference implementation of BIP173.
|
Package bech32 is a modified version of the reference implementation of BIP173. |
age/internal/format
Package format implements the age file format.
|
Package format implements the age file format. |
age/internal/stream
Package stream implements a variant of the STREAM chunked encryption scheme.
|
Package stream implements a variant of the STREAM chunked encryption scheme. |
Click to show internal directories.
Click to hide internal directories.