package
1.9.1
Repository: https://github.com/forceu/gokapi.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CalculateEncryptedFilesize returns the filesize of the encrypted file including the encryption overhead.
DecryptReader modifies a reader so it can decrypt encrypted files.
Encrypt encrypts a file.
EncryptDecryptBytes encrypts or decrypts a byte array.
GetCipherFromFile loads the cipher from a file model.
GetDecryptReader returns a reader that can decrypt encrypted files.
GetDecryptWriter returns a writer that can decrypt encrypted files.
GetEncryptReader returns a reader that can encrypt plain files.
GetEncryptWriter returns a writer that can encrypt plain files.
GetRandomCipher a 32 byte long array with random data.
GetRandomNonce a 12 byte long array with random data.
Init needs to be called to load the master key into memory or ask the user for the password.
IsCorrectKey checks if correct key is being used.
PasswordChecksum creates a checksum which is used to check if the supplied password is correct.

# Constants

EndToEndEncryption means all files are encrypted and decrypted client-side.
FullEncryptionInput means all files are encrypted, password needs to be entered on startup.
FullEncryptionStored means all files are encrypted, cipher for local files is in plaintext.
LocalEncryptionInput means remote files are stored in plaintext, password needs to be entered on startup.
LocalEncryptionStored means remote files are stored in plaintext, cipher for local files is in plaintext.
NoEncryption means all files are stored in plaintext.