osbbtea.h File Reference
Detailed Description
OSB encryption and decryption.
- Version:
- Name
- OSB_060808
- Revision
- 1.7
Uses the Block TEA algorithm designed by David Wheeler and Roger Needham.
- Todo:
- Uses a hard-coded key: should be user specific.
The current implementation fills missing bytes with 0.
That's why ASCII strings can be decoded. To support any data we'd have to store the data size in the first 4 bytes during encoding and read back during decryption.
Definition in file osbbtea.h.
Go to the source code of this file.
Namespaces
Functions
- int OSB_LIB::pwCrypt (const std::string &src, std::string &dest)
- Encrypt an ASCII sentence.
- int OSB_LIB::pwDecrypt (const std::string &src, std::string &dest)
- Decrypt an ASCII sentence.
- int OSB_LIB::osbCrypt (const std::string &src, std::string &dest)
- Encrypt bytes with Block TEA algorithm.
- int OSB_LIB::osbDecrypt (const std::string &src, std::string &dest)
- Decrypt bytes with Block TEA algorithm.
Generated on Sat Sep 2 14:06:36 2006 for OSB Library by
1.4.7