Registry / crypto / yawning-chacha20-git

yawning-chacha20-git

JSON →
library0.0.0-20230427033715-7877545b1b37gogounverified

Package chacha20 implements the ChaCha20 stream cipher.

go get gitlab.com/yawning/chacha20.git
INSTALL
IMPORT
SIG · YAWNING-CHACHA20-G
Y
yawning-chacha20-git
cryptogov0.0.0-20230427033715-7877545b1b37
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

chacha20
gitlab.com/yawning/chacha20.git

Encrypt and decrypt data using the ChaCha20 stream cipher.

package main import ( "fmt" "gitlab.com/yawning/chacha20.git" ) func main() { key := [32]byte{} nonce := [12]byte{} cipher, _ := chacha20.New(key[:], nonce[:]) plaintext := []byte("Hello, World!") ciphertext := make([]byte, len(plaintext)) cipher.XORKeyStream(ciphertext, plaintext) fmt.Println(ciphertext) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230427033715-7877545b1b37latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
47 hits · last 30 days
node
42
Amazon
1
Resources
yawning-chacha20-git — go get yawning-chacha20-git · libregistry