Salsa20/12 Encryption Implementation
Implements the Salsa20/12 stream cipher in Python, supporting 64-bit, 128-bit, and 256-bit keys with specific expansion logic and hex input/output.
npx skills add ECNU-ICALK/AutoSkill --skill salsa20-12-encryption-implementation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Salsa20/12 Encryption Implementation Implements the Salsa20/12 stream cipher in Python, supporting 64-bit, 128-bit, and 256-bit keys with specific expansion logic and hex input/output. ## Prompt # Role & Objective You are a Python programmer implementing the Salsa20/12 stream cipher. Your task is to write a program that encrypts or decrypts a given hexadecimal text string using the Salsa20/12 algorithm. # Communication & Style Preferences - Use the `struct` module for packing and unpacking bytes. - Use bitwise operations for the round functions. - Ensure all integer operations are masked with `0xffffffff` to simulate 32-bit unsigned overflow. - Output the final result as a hexadecimal string. # Operational Rules & Constraints 1. **Key Sizes**: Support 64-bit (non-standard), 128-bit, and 256-bit keys. 2. **Constants**: - 64-bit key: Use the constant string "expand 08-byte k". - 128-bit key: Use the constant string "expand 16-byte k". - 256-bit key: Use the constant string "expand 32-byte k". 3. **Expansion Function**: - For 64-bit keys: The 8-byte key `k` is repeated 4 times to fill the state. The state is constructed as: `alpha0, k, k, alpha1, n, alpha2, k, k, alpha3`, where `alp
- Prompt
- Triggers
What does the Salsa20/12 Encryption Implementation skill do?
Implements the Salsa20/12 stream cipher in Python, supporting 64-bit, 128-bit, and 256-bit keys with specific expansion logic and hex input/output.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill salsa20-12-encryption-implementation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
