Public Member Functions | Protected Member Functions

zeus::TSimpleDES Class Reference

#include <SimpleDES.h>

Inheritance diagram for zeus::TSimpleDES:
zeus::TAbstractCrypter zeus::TZObject zeus::IZUnknown

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

TSimpleDES::TSimpleDES (  )

Creates a simple DES crypter object

TSimpleDES::~TSimpleDES (  ) [protected, virtual]

Destroys the simple DES crypter object


Member Function Documentation

Int zeus::TSimpleDES::decode ( Int  iInput ) [inline]

encrypts a cipher text into a clear text

Retval TSimpleDES::decode ( const IByteArray rInput,
IByteArray rOutput 
) [virtual]
Int zeus::TSimpleDES::encode ( Int  iInput ) [inline]

encrypts a clear text into a cipher text

Retval TSimpleDES::encode ( const IByteArray rInput,
IByteArray rOutput 
) [virtual]
Int zeus::TSimpleDES::getBlockSizeForDecoding (  ) const [inline, virtual]
Int zeus::TSimpleDES::getBlockSizeForEncoding (  ) const [inline, virtual]
void TSimpleDES::setKey ( const IByteArray rKey ) [virtual]

Generates the private keys 1 and 2. The size of the key is 10bit

See also:
TAbstractCrypter::setKey

Implements zeus::TAbstractCrypter.

void TSimpleDES::setKey ( Uint64  uldKey ) [virtual]

Generates the private keys 1 and 2. The size of the key is 10bit

See also:
TAbstractCrypter::setKey

Implements zeus::TAbstractCrypter.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


Written by Benjamin Hadorn http://www.xatlantis.ch.
Last change made on Sun Jan 22 2012 15:28:32