Metadata-Version: 2.4
Name: playfairx
Version: 0.1.0
Summary: A Playfair cipher implementation in Python
Author: Philipa
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Playfair Cipher

A simple Python implementation of the Playfair cipher.

## Usage

```python
import playfairx

password = "secret"
plainText = "Hello World"

print("Password: ")
print(password)
print()

print("Input text:")
print(plainText)
print()

# Generate Playfair compatible alphabet
generatedAlphabet = playfairx.alphabetFromPassowrd(password)

# Create Playfair Grid
grid = playfairx.generateTable(generatedAlphabet)


encryptedText = playfairx.encryptText(plainText, grid=grid)


print("Encrypted Text:")
print(encryptedText)

print()
print()

# Decrypt Text
print("Decrpyted Text:")
print(playfairx.decryptText(encryptedText, grid))


```

This produces
```bash
Password: 
secret

Input text:
Hello World

Encrypted Text:
iskyiqewfqkc


Decrpyted Text:
helxloworldx
```
