Skip to content

RC4C cipher, it's RC4 extension with two S-boxes on key and IV, and with 3 scrambling phases.

Notifications You must be signed in to change notification settings

schwarzlichtbezirk/rc4c-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

rc4c-go

RC4C cipher, it's RC4 extension with two S-boxes on key and IV, and with 3 scrambling phases.

Installation

With a correctly configured Go toolchain:

go get github.com/schwarzlichtbezirk/rc4c-go

Usage

Package RC4C has same implementation as standard RC4. Sample usage for encrypt / decrypt message:

func encryptmsg(key, iv []byte, enc, text []byte) {
	var c, _ = rc4c.NewCipher(key, iv)
	c.XORKeyStream(enc, text)
}

func decryptmsg(key, iv []byte, enc, text []byte) {
	var c, _ = rc4c.NewCipher(key, iv)
	c.XORKeyStream(enc, text)
}

License

Author: © schwarzlichtbezirk (schwarzlichtbezirk@gmail.com)
The project is released under the MIT license.

About

RC4C cipher, it's RC4 extension with two S-boxes on key and IV, and with 3 scrambling phases.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages