package
Version:
v0.0.0-...-58ce9b1
Opens a new window with list of versions in this module.
Published: May 6, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package aes provides encryption for the vsafe app. These encryption routines
do not support embedded null characters in strings.
Decrypt decrypts encoded using key. encoded is a base64 encoded string
from Encrypt.
DecryptB decrypts encoded using key. encoded is a base64 encoded string
from EncryptB. Decrypt returns a new slice.
Encrypt encrypts plain with key and returns a base64 encoded string.
EncryptB encrypts plain with key and returns a base64 encoded string.
PKCS7 adds PKCS7 padding to data in place for AES encryption.
UnPKCS7 removes PKCS7 padding for AES encryption from data in place and
returns an error if data is not PKCS7 padded.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.