Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.txt

A go implementaton of ChaCha20 as described in rfc7539

result is a []uint8 that is the ciphertext

example of usage:

package main

import (
	"fmt"
	"github.com/ascottqqq/rfc7539"
)

func main() {
	fmt.Println(rfc7539.Encrypt(rfc7539.ChaCha20{[32]uint8{0x00, 0x00, 0x00, 0x00, 
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00}, 0, [12]uint8{0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, []byte("Hello world")})
}

About

ChaCha20 (as described in rfc7539 with one 32 bit word counter)

Resources

Releases

No releases published

Packages

No packages published

Languages