Skip to main content

Library for performing frequency analysis to different formats

Project description

# 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/)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freqens-0.0.3.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file freqens-0.0.3.tar.gz.

File metadata

  • Download URL: freqens-0.0.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for freqens-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e0183b4aa96ad6db017e23f73fd9dc2970afaaf38253c0ed02cfed41ba5c7e7d
MD5 aebc423d750810693a584c4c84a3fb23
BLAKE2b-256 b2d257a52bbeb74c1f68ac37491dbc27213e941d4aab20b35ce98c5d39d2e60c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page