All Projects → c9s → go-aes-crypt

c9s / go-aes-crypt

Licence: other
No description, website, or topics provided.

Programming Languages

go
31211 projects - #10 most used programming language

Simple AES Encryption library for Go

import aes "github.com/c9s/go-aes-crypt"
func main() {
    key := []byte("example key 1234")
    cryptor := aes.NewAESCrypt(key, 16)
    msg := cryptor.EncryptStringToBase64String("plain text")
    fmt.Println(msg)
    decrypted, err := cryptor.DecryptBase64StringToString(msg)
    if err != nil {
        panic(err)
    }
    fmt.Println(decrypted)
}

Install

go get -x github.com/c9s/go-aes-crypt
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].