Skip to content

rpop0/bifid-cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python implementation of the Bifid Cipher

This repository contains a simple implementation of the Bifid Cipher.

Usage:

Create a BifidCipher object. You can create it using a predefined Polybius square, or you can generate one by default by leaving the variable empty.

from BifidCipher import BifidCipher

cipher = BifidCipher()
encrypted = cipher.encrypt_message('testing hello')
>>> cipher.decrypt_message(encrypted)
QTIXTMFNHVND

Additionally, you can supply a period/block size for the BifidCipher in the constructor.

from BifidCipher import BifidCipher

cipher = BifidCipher('ABCDEFGHIJKLMNOPQRSTUVWXYZ', period=3)
encrypted = cipher.encrypt_message('testing hello')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages