Logo
~Sockets~
~Examples~
~Contact~


NullCrypt Class Reference
[Distributed network framework]

ICrypt implementation with no encryption. More...

#include <NullCrypt.h>

Inheritance diagram for NullCrypt:

Inheritance graph
[legend]
Collaboration diagram for NullCrypt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NullCrypt ()
std::string encrypt (unsigned char *, const std::string &)
bool decrypt (unsigned char *, const std::string &, std::string &)

Detailed Description

ICrypt implementation with no encryption.

Definition at line 42 of file NullCrypt.h.


Constructor & Destructor Documentation

NullCrypt::NullCrypt (  ) 

Definition at line 41 of file NullCrypt.cpp.

00042 :ICrypt()
00043 {
00044 }


Member Function Documentation

std::string NullCrypt::encrypt ( unsigned char *  ,
const std::string &   
) [virtual]

Implements ICrypt.

Definition at line 47 of file NullCrypt.cpp.

References Base64::encode().

00048 {
00049         Base64 b;
00050         std::string tmp;
00051         b.encode(input, tmp, false);
00052         return tmp;
00053 }

bool NullCrypt::decrypt ( unsigned char *  ,
const std::string &  ,
std::string &   
) [virtual]

Implements ICrypt.

Definition at line 56 of file NullCrypt.cpp.

References Base64::decode().

00057 {
00058         Base64 b;
00059         b.decode(input, output);
00060         return true;
00061 }


The documentation for this class was generated from the following files:
Page, code, and content Copyright (C) 2007 by Anders Hedström
Generated for C++ Sockets by  doxygen 1.4.4