# Freqens

> Perform frequency analysis with python
### Example
````python
# break single byte xor encryption
from freqens import EnglishAnalyzer
def single_byte_xor(text, byte):
return "".join( chr(c ^ byte) for c in bytearray(text) )
with open("ciphertext.txt") as ciphertext_file:
ciphertext = ciphertext_file.read()
analyzer = EnglishAnalyzer()
possible_plaintexts = ( single_byte_xor(ciphertext, byte) for byte in range(256) )
answer = analyzer.choose_best(possible_plaintexts)
print answer[0] # Solution !!!
````
### Getting Started
Get started [here](http://freqens.readthedocs.org/en/latest/tutorial.html)
### Documentation
Read them at [readthedocs](http://freqens.readthedocs.org/en/latest/)

> Perform frequency analysis with python
### Example
````python
# break single byte xor encryption
from freqens import EnglishAnalyzer
def single_byte_xor(text, byte):
return "".join( chr(c ^ byte) for c in bytearray(text) )
with open("ciphertext.txt") as ciphertext_file:
ciphertext = ciphertext_file.read()
analyzer = EnglishAnalyzer()
possible_plaintexts = ( single_byte_xor(ciphertext, byte) for byte in range(256) )
answer = analyzer.choose_best(possible_plaintexts)
print answer[0] # Solution !!!
````
### Getting Started
Get started [here](http://freqens.readthedocs.org/en/latest/tutorial.html)
### Documentation
Read them at [readthedocs](http://freqens.readthedocs.org/en/latest/)
Release files for freqens 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| freqens-0.0.3.tar.gz | 5.8 kB | Details |
Release files / freqens-0.0.3.tar.gz
| Download URL | freqens-0.0.3.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0183b4aa96ad6db017e23f73fd9dc2970afaaf38253c0ed02cfed41ba5c7e7d
|
|
BLAKE2b-256 checksum How to use checksums |
b2d257a52bbeb74c1f68ac37491dbc27213e941d4aab20b35ce98c5d39d2e60c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |