Discover Packages
github.com/KirillMironov/beaver
internal
aes
package
Version:
v0.0.0-...-d5572aa
Opens a new window with list of versions in this module.
Published: Apr 30, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
KeyLength is the recommended length of the AES key.
Decrypt decrypts a base64-encoded byte slice using the given key
and initialization vector (IV) contained in the byte slice.
Encrypt encrypts a byte slice using the given key
and returns the encrypted byte slice in base64-encoded form,
including the initialization vector (IV) used during encryption.
The IV is a unique value used in the encryption process to prevent replay attacks.
type Decrypter struct {
}
Decrypt decrypts data from src and writes it to dst.
type Encrypter struct {
}
Encrypt encrypts data from src and writes it to dst.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.