Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashMe ¶
HashMe: This function handle a 'file' or '[]byte' as arguments. Returns the value Hash for the 'in'. The 'hashType' argument represents the targeted type: 'md5', 'sha256', 'sha512'.
Types ¶
type AES256CipherStruct ¶
type AES256CipherStruct struct { Data []byte // In/Out data store. InFilename string OutFilename string // contains filtered or unexported fields }
AES256CipherStruct: Structure that contain information for encrypting/ decrypting file or data. Result of string encryption is contained in Data
func (*AES256CipherStruct) Encrypt ¶
func (c *AES256CipherStruct) Encrypt(passphrase string) error
func (*AES256CipherStruct) EncryptFile ¶
func (c *AES256CipherStruct) EncryptFile(passphrase string) (err error)
func (*AES256CipherStruct) Uncrypt ¶
func (c *AES256CipherStruct) Uncrypt(passphrase string) error
func (*AES256CipherStruct) UncryptFile ¶
func (c *AES256CipherStruct) UncryptFile(passphrase string) (err error)
Click to show internal directories.
Click to hide internal directories.