Skip to content

andreacioni/aescrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aescrypt Travis CI Go Report Card GoDoc

Golang implementation of AES file encryption/decryption compatible with AES Crypt version 1 & 2

Installation

go get github.com/andreacioni/aescrypt

Example

package main

import (
    "fmt"
    "github.com/andreacioni/aescrypt"
)

func main() {
    aesCrypt := aescrypt.New("super_secret_password")

    if err := aesCrypt.Encrypt("plain_text_file.txt", "plain_text_file.txt.aes"); err != nil {
        fmt.Printf("Failed to encrypt the file: %v\n", err)
    }

    if err := aesCrypt.Decrypt("plain_text_file.txt.aes", "plain_text_file.txt"); err != nil {
        fmt.Printf("Failed to decrypt the file: %v\n", err)
    }
}

Made with by Andrea Cioni

About

Golang implementation of AES file encryption/decryption compatible with https://www.aescrypt.com

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages