package
0.1.3-beta
Repository: https://github.com/nexocrew/3nigm4.git
Documentation: pkg.go.dev

# Functions

AesDecrypt decrypt data with AES256 using a key Salt and IV are passed in the encrypted message.
AesEncrypt encrypt data with AES256 using a key.
CheckHMAC verify an hmac message with a given key and reference message.
DecodePgpArmored decode pgp armored messages from ASCII armored format.
DeriveKeyWithPbkdf2 derive a key from a password using Pbkdf2 algorithm.
EncodePgpArmored encode a pgp message in armored ASCII format.
GenerateHMAC produce hmac with a message and a key.
GetKeyByEmail returns a specific key from an email address.
GetSaltFromCipherText extract the salt component from an encrypted data blob.
NewPgpKeypair creates a pgp keypair and encodes them as byte slides.
OpenPgpDecrypt decrypt a message using the argument keyring as source to get required keys.
OpenPgpEncrypt encrypt using pgp and the passed recipients list and signer entity.
OpenPgpSignMessage creates a signature for a message.
OpenPgpVerifySignature verify a signature using a public PGP key, an error is returned if the signature is not verified otherwise returning nil.
PKCS5Padding padding function to pad a certain blob of data with necessary data to be used in AES block cipher.
PKCS5UnPadding unpad data after AES block decrypting.
ReadArmoredKeyRing read keys in an armored keyring and returns openpgp entities.
XorKeys xor given keys (passed in a slice) returning an unique key.

# Constants

AES CBC mode.

# Type aliases

AesMode defines a enum type for available aes encryption modes.