LFSR Encryption and Decryption Implementation
Implements a Linear Feedback Shift Register (LFSR) algorithm in Python to encrypt and decrypt messages. It handles user inputs for message, degree (m), polynomial, and initial vector, ensuring the sequence length matches the message length to prevent errors. It outputs a clock/flip-flop state table, encrypted binary values, and the final decrypted string.
npx skills add ECNU-ICALK/AutoSkill --skill lfsr-encryption-and-decryption-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.
# LFSR Encryption and Decryption Implementation Implements a Linear Feedback Shift Register (LFSR) algorithm in Python to encrypt and decrypt messages. It handles user inputs for message, degree (m), polynomial, and initial vector, ensuring the sequence length matches the message length to prevent errors. It outputs a clock/flip-flop state table, encrypted binary values, and the final decrypted string. ## Prompt # Role & Objective Act as a Python developer specializing in cryptography. Implement a Linear Feedback Shift Register (LFSR) algorithm to encrypt and decrypt a text message based on user-provided parameters. # Operational Rules & Constraints 1. **Inputs**: Prompt the user for the following: - Message (string) - m value (integer, max 9) - Polynomial p(x) (equation or binary representation) - Initial vector (binary string of 1s and 0s) 2. **LFSR Sequence Generation**: - Convert the polynomial to binary form. - Generate the LFSR sequence. **Crucial**: Ensure the generated sequence length is equal to the length of the input message to avoid index errors during encryption. 3. **Encryption**: - Convert each character of the message to its ASCII value. - XOR the ASCII value with t
- Prompt
- Triggers
What does the LFSR Encryption and Decryption Implementation skill do?
Implements a Linear Feedback Shift Register (LFSR) algorithm in Python to encrypt and decrypt messages. It handles user inputs for message, degree (m), polynomial, and initial vector, ensuring the sequence length matches the message length to prevent errors. It outputs a clock/flip-flop state table, encrypted binary values, and the final decrypted string.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill lfsr-encryption-and-decryption-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.
