Comments (2)
Because that's what the spec say: "between 32 and 448 bits". So, that's between 4 and 56 bytes.
Now, if you are asking a deeper question of why cryptographically it is limited to 56 bytes, you might find the answer in the Blowfish paper at https://www.schneier.com/paper-blowfish-fse.html
from python-blowfish.
Perfect! Thanks for that URL it makes a lot of sense. The 56 threw me off guard because many of the other libraries outside of python do not have this requirement in place.
from python-blowfish.
Related Issues (19)
- Key can be between 4 and 56 bytes
- Add tests for little-endian encryption/decryption
- Add basic command line interface
- DES_set_key_checked in blowfish HOT 2
- Bytes to str and back, ctr_counter HOT 2
- Bad Pi! HOT 3
- Add ECB-CTS support
- Docs - electronic code book HOT 1
- Cannot see the result
- there's warning in dist.py HOT 6
- Need example for encrypt/decrypt for a large file (say 1mb)
- Add CBC-CTS support
- Add optional LLVM support HOT 1
- Add custom exceptions for incorrect input data
- Use unittest module for testing
- ECB-CTS input must be greater than the block-size
- SyntaxError: Non-ASCII character '\xcf' in file blowfish.py on line 32 HOT 3
- Little endian byte order input is not interpreted correctly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-blowfish.