https://github.com/konano/ctf-flag-generator
A CTF leet flag generator
https://github.com/konano/ctf-flag-generator
Last synced: 6 months ago
JSON representation
A CTF leet flag generator
- Host: GitHub
- URL: https://github.com/konano/ctf-flag-generator
- Owner: Konano
- License: mit
- Created: 2022-01-30T15:40:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-30T16:59:03.000Z (over 3 years ago)
- Last Synced: 2025-03-25T23:09:12.522Z (7 months ago)
- Language: Python
- Size: 15.6 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CTF Flag Generator
A CTF leet flag generator
## Install
```
pip install flag-gen
```## Usage
To translate alpha characters to leet string:
```
flag-gen 'this is your flag'
````And output maybe:
```
TH1S_i5_yOUr_fL@6
Entropy: 20.92 bits
```You can use it in your code:
```python
import flag_genprint(flag_gen.leet('this is your flag'))
# ('7H1s_1$_youR_fL46', 20.92481250360578)
```