Skip to content

Implementation of Blowfish algorithm designed by Bruce Schneier

Notifications You must be signed in to change notification settings

lonelyelk/blowfish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blowfish

This is an excercise in implementing Blowfish (wiki) algorithm designed by Bruce Schneier.

Pi

For initializing the P-Array and S-boxes the algorythm uses hexadecimal digits of Pi. It is of course not wise to calculate the digits every time an initializaion needed. I did however implement the Bailey–Borwein–Plouffe formula for the purpose of the excercise.

Byte Array Encryption

There is a simple implementation for a byte array encryption (and decryption that assumes the encryption was done this way). First 32 bits (4 bytes) of the first block is the length of the array. Zero bytes are added in the end to obtain the last whole block.

About

Implementation of Blowfish algorithm designed by Bruce Schneier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages