Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 498 Bytes

README.md

File metadata and controls

26 lines (23 loc) · 498 Bytes

aespro

Usage:

go get github.com/XuefengHuang/aespro

Example:

import (
    "github.com/XuefengHuang/aespro"
    "fmt"
)

func main() {
    /*
    *src encrypt_text
    *key length(128bit、192bit、256bit)
    *the length of key is 16 = 128bit
     */
    src := "exampleplaintext"
    key := "example key 1234"

    crypted := aespro.CFBEncrypt(src, key)
    fmt.Println("crypted is: ", crypted)
    plain := aespro.CFBDecrypt(crypted, key)
    fmt.Println("plain is: ", plain)
}