Skip to main content
# Freqens
![TravisCI Status](https://magnum.travis-ci.com/BraulioVM/freqens.svg?token=qKkPGCZvRdJvJ693qC2L)
> 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)

Source distribution for freqens 0.0.3
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

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page