项目作者: schwarzlichtbezirk

项目描述 :
RC4C cipher, it's RC4 extension with two S-boxes on key and IV, and with 3 scrambling phases.
高级语言: Go
项目地址: git://github.com/schwarzlichtbezirk/rc4c-go.git
创建时间: 2018-01-20T15:55:46Z
项目社区:https://github.com/schwarzlichtbezirk/rc4c-go

开源协议:

下载


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:

  1. go get github.com/schwarzlichtbezirk/rc4c-go

Usage

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

  1. func encryptmsg(key, iv []byte, enc, text []byte) {
  2. var c, _ = rc4c.NewCipher(key, iv)
  3. c.XORKeyStream(enc, text)
  4. }
  5. func decryptmsg(key, iv []byte, enc, text []byte) {
  6. var c, _ = rc4c.NewCipher(key, iv)
  7. c.XORKeyStream(enc, text)
  8. }

License

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