Versions in this module Expand all Collapse all v1 v1.2.2 Sep 19, 2015 Changes in this version + const Version + func PKCS7Padding(clearTextLen, blockSize int) []byte + func ReadPassword(minLen int, twice bool) (string, error) + type AES struct + func NewAES(password string) (*AES, error) + func (a *AES) Decrypt(ciphertext []byte) []byte + func (a *AES) DecryptFile(r io.Reader, w io.Writer) error + func (a *AES) Encrypt(plaintext []byte) []byte + func (a *AES) EncryptFile(r io.Reader, w io.Writer) error + func (a *AES) EncryptedFileLength(fi os.FileInfo) int64 + func (a *AES) InitDecryption(iv []byte) + func (a *AES) InitEncryption() ([]byte, error) + func (a *AES) RemovePadding(clear []byte) []byte + type Cipher interface + Decrypt func(key, cipher []byte) []byte + Encrypt func(key, clear []byte) []byte + func NewVigenere() Cipher + func NewXor() Cipher + type Status int + const Idle + const Running + type TarArchive struct + func NewTarArchive(password string) *TarArchive + func (a *TarArchive) Create(output string, files []string) error + func (a *TarArchive) Extract(input, outputDir string) error + type Vigenere int + func (v *Vigenere) Decrypt(key, cipher []byte) []byte + func (v *Vigenere) Encrypt(key, clear []byte) []byte + type WalkFunc func(path string, info os.FileInfo, current, total int) error + type Xor int + func (x *Xor) Decrypt(key, cipher []byte) []byte + func (x *Xor) Encrypt(key, clear []byte) []byte + type ZipArchive struct + func NewZipArchive(password string) *ZipArchive + func (a *ZipArchive) Cancel() + func (a *ZipArchive) Create(output string, files []string, fn WalkFunc, random bool) error + func (a *ZipArchive) ExtractAll(archive, outputDir string) error + func (a *ZipArchive) ExtractAt(pos int, archive, outputDir string) error + func (a *ZipArchive) SetPassword(pwd string) + func (a *ZipArchive) Status() Status