Skip to content
/ secret Public

A simple utility for encrypting and decrypting data in Go (AES-256-CFB)

License

Notifications You must be signed in to change notification settings

tidwall/secret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

secret

A simple utility for encrypting and decrypting data in Go. (AES-256-CFB)

Install

go get github.com/tidwall/secret

Example

func main

import "github.com/tidwall/secret"

func main(){
    key := "hello world"
    data := []byte("hello jello")

    encdata, err := secret.Encrypt(key, data)
    if err != nil{
        panic(err)
    }

    decdata, err := secret.Decrypt("hello world", encdata)
    if err != nil{
        panic(err)
    }

    println(string(decdata))
}
// output:
// hello jello

About

A simple utility for encrypting and decrypting data in Go (AES-256-CFB)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages