Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fa7ad/bad-ciphers
A collection of bad ciphers
https://github.com/fa7ad/bad-ciphers
cryptography hacktoberfest hacktoberfest2023
Last synced: 24 days ago
JSON representation
A collection of bad ciphers
- Host: GitHub
- URL: https://github.com/fa7ad/bad-ciphers
- Owner: fa7ad
- License: mit
- Created: 2023-07-06T13:55:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-02T11:42:10.000Z (about 1 year ago)
- Last Synced: 2024-04-24T20:03:07.467Z (7 months ago)
- Topics: cryptography, hacktoberfest, hacktoberfest2023
- Language: TypeScript
- Homepage:
- Size: 1.65 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Bad Ciphers
A collection of bad ciphers that should not be used in any serious application, but are still fun to play with.
## Usage
```typescript
import * as xor from '@bad-ciphers/xor';
import * as caesar from '@bad-ciphers/caesar';
import * as simpleSubstitution from '@bad-ciphers/substitution/simple';const xor_encoded = xor.encode('Hello World!', 0xffff);
const xor_decoded = xor.decode(encoded, 0xffff);const caesar_encoded = caesar.encode('Hello World!', 7);
const caesar_decoded = caesar.decode(caesar_ed, 7);const substitution_encoded = simpleSubstitution.encode('Hello World!', 'zyxwvutsrqponmlkjihgfedcba');
const substitution_decoded = simpleSubstitution.decode(substitution_encoded, 'zyxwvutsrqponmlkjihgfedcba');
```## Ciphers
- [XOR](./packages/xor/README.md)
- [Caesar](./packages/caesar/README.md)
- [Simple Substitution](./packages/substitution/README.md)## License
All packages are licensed under the [MIT License](./LICENSE).