Documentation ¶
Index ¶
- Constants
- func Decrypt(key []byte, cryptoText string) (pt string, err error)
- func DecryptCipherText(cipherText, rawKey, nonce, rawAuthenticatedData string) (result []byte, err error)
- func Encrypt(key []byte, text string) string
- func EncryptString(plainText, key, nonce, authenticatedData string, noBytes int) (result string, err error)
- func GenerateItemKey(returnBytes int) string
- func GenerateMasterKeyAndServerPassword004(input GenerateEncryptedPasswordInput) (masterKey, serverPassword string, err error)
- func GenerateNonce() []byte
- func SplitContent(in string) (version, nonce, cipherText, authenticatedData string)
- type GenerateEncryptedPasswordInput
Constants ¶
View Source
const ( // KeySize is the size of the key used by this AEAD, in bytes. KeySize = 32 // NonceSizeX is the size of the nonce used with the XChaCha20-Poly1305 // variant of this AEAD, in bytes. NonceSizeX = 24 SaltSize = 16 MaxPlaintextSize = 10000000 )
Variables ¶
This section is empty.
Functions ¶
func DecryptCipherText ¶
func EncryptString ¶
func GenerateItemKey ¶
func GenerateMasterKeyAndServerPassword004 ¶
func GenerateMasterKeyAndServerPassword004(input GenerateEncryptedPasswordInput) (masterKey, serverPassword string, err error)
func GenerateNonce ¶
func GenerateNonce() []byte
func SplitContent ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.