Skip to content
forked from tidwall/secret

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

License

Notifications You must be signed in to change notification settings

kstadium/secret

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%