Skip to main content

Prisoner's tap code encryption

Project description


PyPI version Requirements Status Documentation Status

Tapcode Cypher also known as Prisoner's tapcode. For a complete documentation look at ReadTheDocs


You can install tapcode either via pip (PyPI) or from source. To install using pip:

pip3 install tapcode

Or manually:

git clone
cd tapcode
python3 install


$ tapcode --help 

usage: tapcode [-h] [-s SENTENCE] [-f FILE] [-d] [-e]

optional arguments:
  -h, --help            show this help message and exit
  -s SENTENCE, --sentence SENTENCE
                        Sentence to cypher or decipher
  -f FILE, --file FILE  file to cypher or decipher
  -d, --decode          decode tapcode sentence.
  -e, --encode          encode sentences to tapcode.

Encipher a clear message :

$ tapcode -es "I Love Tapcode"
24 31345115 44113513341415.

Decipher a tapcode message :

$tapcode -ds "24 31345115 44113513341415"

You can do the same but from file :

# Encipher
$ echo "I love coffee !" > to_encode.txt
$ tapcode -ef to_encode.txt
$ cat encoded
24 31345115 133421211515 .

# Decipher
$ echo "24 31345115 3511434411" > to_decode.txt
$ tapcode -df to_decode.txt
$ cat decoded


For a complete API documentation look at ReadTheDocs

Project details

Download files

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

Files for tapcode, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size tapcode-1.0.0-py3-none-any.whl (4.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tapcode-1.0.0.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page