Skip to content

scloudrun/go-rc6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-rc6

go-rc6 golang rc6 encrypt

'   ██████╗  ██████╗       ██████╗  ██████╗ ██████╗ 
'  ██╔════╝ ██╔═══██╗      ██╔══██╗██╔════╝██╔════╝ 
'  ██║  ███╗██║   ██║█████╗██████╔╝██║     ███████╗ 
'  ██║   ██║██║   ██║╚════╝██╔══██╗██║     ██╔═══██╗
'  ╚██████╔╝╚██████╔╝      ██║  ██║╚██████╗╚██████╔╝
'   ╚═════╝  ╚═════╝       ╚═╝  ╚═╝ ╚═════╝ ╚═════╝ 

Installation

Use go get to install and update:

$ go get -u github.com/scloudrun/go-rc6

Quick start

# assume the following codes in example.go file
$ cat example.go
package main

import ( 
    "fmt"
    rc6lib "github.com/scloudrun/go-rc6"
)

var (
	defaultKey     = []byte("0000000000000000")
	defaultIv      = []byte("1111111111111111")
	defaultEncData = []byte("scloudrun")
	defaultEncByte = []byte{148, 250, 198, 116, 20, 46, 103, 128, 40, 160, 83, 239, 210, 246, 151, 15}
)

func main() {
    fmt.Println(rc6lib.Rc6Enc(defaultKey,defaultIv,defaultEncData,true))
}
# run example.go
$ go run example.go

Todo

  • extend

About

Golang rc6 encryption algorithm usage

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages