package
0.2.7
Repository: https://github.com/ghmer/go-tiny-mfa.git
Documentation: pkg.go.dev

# Functions

BcryptHash hashes a given byte array with bcrypt and a cost of 10.
BycrptVerify compares a bcrypted comparable and its plain byte array.
DecodeBase32Key Decodes a base32 encoded key to a byte array.
Decrypt takes in two byte arrays.
DecryptFile takes a filePath as a string and a passphrase as a byte array.The file found at filePath is then decrypted using the Decrypt Methodand then wrote back to the original filePath.
Encrypt takes in a byte array as data and another byte array as the passphrase,encrypts the data using the AES cipher and returns the encrypted data (also as byte array)please note that the nonce needed to encrypt the data using AES GCM is appended to the byte array.
EncryptFile takes a filePath as a string and a passphrase as a byte array.The file found at filePath is then Encrypted using the Encrypt Methodand then wrote back to the original filePath.
GenerateCryptedKeyBase32 generates a new Key, encrypts it with the root key and encodes it to base32.
GenerateExtendedKeyBase32 returns a base32 encoded 256bit key.
ScrubInformation crubs some sensitive information from the objects and nullifies the given byte array.
ScrubIssuerStruct scrubs the key of the issuer.
ScrubKey nullifies a given byte array.
ScrubUserStruct scrubs the key of the user and also the issuer key.