Documentation ¶
Index ¶
- func Decrypt(key, data []byte) ([]byte, error)
- func DecryptFile(encryptedFileName string, plainTextFileName string, key []byte)
- func DeriveKey(password, salt []byte) ([]byte, []byte, error)
- func Encrypt(key, data []byte) ([]byte, error)
- func EncryptFile(plainTextFileName string, encryptedFileName string, key []byte)
- func ExampleForEncryptionWithPassword()
- func GetKeyFromFile(keyFileName string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptFile ¶
DecryptFile decrypts an encrypted file to a plain text file.
func EncryptFile ¶
EncryptFile encrypts a plain text file to an encrypted file.
func ExampleForEncryptionWithPassword ¶
func ExampleForEncryptionWithPassword()
func GetKeyFromFile ¶
GetKeyFromFile reads the content of a file as a key. The key should be 16 bytes (AES-128), 24 bytes (AES-192) or 32 bytes (AES-256).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.