package main
import"github.com/Tiked/FileEncryption"funcmain() {
// First initialize the chipher with your key. use a 32 bytes sliceFileEncryption.InitializeBlock([]byte("a very very very very secret key"))
// Now encrypt a file with its patherr:=FileEncryption.Encrypter("/home/desktop/data.txt")
iferr!=nil {
panic(err.Error())
}
// Now you should see data.txt.enc in your desktop// To decrypt iterr=FileEncryption.Decrypter("/home/desktop/data.txt.enc")
iferr!=nil {
panic(err.Error())
}
// Now you should see data.txt in your desktop
}