{"id":52123,"library":"aead-chacha20poly1305","title":"ChaCha20Poly1305 AEAD","description":"Package chacha20poly1305 implements the ChaCha20-Poly1305 AEAD cipher.","status":"active","version":"0.0.0-20201124145622-1a5aba2a8b29","language":"go","source_language":null,"source_url":"https://github.com/aead/chacha20poly1305","tags":["crypto","aead","chacha20","poly1305"],"install":[{"cmd":"go get github.com/aead/chacha20poly1305","lang":"bash","label":"Install github.com/aead/chacha20poly1305"}],"dependencies":[],"imports":[{"symbol":"chacha20poly1305","correct":"github.com/aead/chacha20poly1305"}],"quickstart":{"code":"package main\n\nimport (\n\t\"crypto/rand\"\n\t\"fmt\"\n\t\"github.com/aead/chacha20poly1305\"\n)\n\nfunc main() {\n\tkey := make([]byte, chacha20poly1305.KeySize)\n\tif _, err := rand.Read(key); err != nil {\n\t\tpanic(err)\n\t}\n\taead, err := chacha20poly1305.New(key)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tnonce := make([]byte, aead.NonceSize())\n\tciphertext := aead.Seal(nil, nonce, []byte(\"hello\"), nil)\n\tfmt.Printf(\"Ciphertext: %x\\n\", ciphertext)\n}","lang":"go","description":"Encrypts and authenticates data using ChaCha20-Poly1305."},"warnings":[{"fix":"Always use a unique nonce for each encryption with the same key.","message":"This package is a low-level cryptographic implementation; ensure correct nonce handling.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'aead':2,10,13 'chacha20':8,14 'chacha20-poly1305':7 'chacha20poly1305':1,4 'cipher':11 'crypto':12 'implement':5 'packag':3 'poly1305':9,15","created_at":"2026-06-15T06:42:15.714896+00:00","updated_at":"2026-06-15T06:42:15.714896+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/aead/chacha20poly1305","github":"https://github.com/aead/chacha20poly1305","docs":"https://pkg.go.dev/github.com/aead/chacha20poly1305#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["crypto"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}