#include <SimpleDES.h>
Public Member Functions | |
| TSimpleDES () | |
| Int | encode (Int iInput) |
| Int | decode (Int iInput) |
| virtual Retval | encode (const IByteArray &rInput, IByteArray &rOutput) |
| virtual Retval | decode (const IByteArray &rInput, IByteArray &rOutput) |
| virtual Int | getBlockSizeForDecoding () const |
| virtual Int | getBlockSizeForEncoding () const |
| virtual void | setKey (Uint64 uldKey) |
| virtual void | setKey (const IByteArray &rKey) |
Protected Member Functions | |
| virtual | ~TSimpleDES () |
The simple DES should not be used as data encoding because its to simple to hack. But it gives a nice idea how the DES works. This class has been added just for illustration.
| TSimpleDES::TSimpleDES | ( | ) |
Creates a simple DES crypter object
| TSimpleDES::~TSimpleDES | ( | ) | [protected, virtual] |
Destroys the simple DES crypter object
| Int zeus::TSimpleDES::decode | ( | Int | iInput ) | [inline] |
encrypts a cipher text into a clear text
| Retval TSimpleDES::decode | ( | const IByteArray & | rInput, |
| IByteArray & | rOutput | ||
| ) | [virtual] |
Implements zeus::TAbstractCrypter.
| Int zeus::TSimpleDES::encode | ( | Int | iInput ) | [inline] |
encrypts a clear text into a cipher text
| Retval TSimpleDES::encode | ( | const IByteArray & | rInput, |
| IByteArray & | rOutput | ||
| ) | [virtual] |
Implements zeus::TAbstractCrypter.
| Int zeus::TSimpleDES::getBlockSizeForDecoding | ( | ) | const [inline, virtual] |
Implements zeus::TAbstractCrypter.
| Int zeus::TSimpleDES::getBlockSizeForEncoding | ( | ) | const [inline, virtual] |
Implements zeus::TAbstractCrypter.
| void TSimpleDES::setKey | ( | const IByteArray & | rKey ) | [virtual] |
Generates the private keys 1 and 2. The size of the key is 10bit
Implements zeus::TAbstractCrypter.
| void TSimpleDES::setKey | ( | Uint64 | uldKey ) | [virtual] |
Generates the private keys 1 and 2. The size of the key is 10bit
Implements zeus::TAbstractCrypter.