Skip to content

DeronW/go-int-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

go-id-cipher

use RC4 cipher a integer to another integer

usage

in console use this to install lib

go get github.com/delongw/go-int-cipher

and then, import it from source

import "github.com/delongw/go-int-cipher"

use it with a private key, ** 1 < len(key) < 256 **

a := int_cipher.Encrypt(1, "this is key") // a is 2554174457
b := int_cipher.Decrypt(2554174457, "this is key") // b is 1

c := int_cipher.Encrypt8(1, "this is key") // c is 153
d := int_cipher.Encrypt8(153, "this is key") // d is 1

About

user rc4 encrypt/decrypt integer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages