API Guides > ConceptRT 3.x
Hash & Encoding

Detailed Description

Classes

class  SHA1DigestAlgorythm
 
class  SHA1Hash
 SHA1 Hash data More...
 

Functions

bool IsBase64 (Char8 c)
 Query if the char is Base64 . More...
 
void Base64Encode (const void *data, const Int32 dataSize, BaseStaticString &result)
 Base64Encode . More...
 
void Base64Encode (const void *data, const Int32 dataSize, Stream &result)
 Base64Encode . More...
 
void Base64Encode (Stream &source, Stream &result)
 Base64Encode . More...
 
Int32 Base64Decode (PCChar8 source, void *data, const Int32 dataSize)
 Base64Decode . More...
 

Function Documentation

Int32 Base64Decode ( PCChar8  source,
void *  data,
const Int32  dataSize 
)

Base64Decode .

Parameters
sourceThe data source (string with char 0 at the end). Length must be a multiple of 4.
data[out] The result of decoding
dataSizeSize of the data buffer. Base64 decoding converts four encoded characters into tree bytes.
Returns
Decoded data size
RT Exceptions:

RT_ERROR_BAD_PARAMETER

RT_ERROR_NOT_BASE64_CHARACTER

void Base64Encode ( const void *  data,
const Int32  dataSize,
BaseStaticString result 
)

Base64Encode .

Parameters
datathe data buffer.
dataSizesize of the data buffer
result[out] the result of encoding
void Base64Encode ( const void *  data,
const Int32  dataSize,
Stream result 
)

Base64Encode .

Parameters
datathe data buffer.
dataSizesize of the data buffer
result[out] the result of encoding
void Base64Encode ( Stream source,
Stream result 
)

Base64Encode .

Parameters
sourcethe data spurce stream.
result[out] the result of encoding
bool IsBase64 ( Char8  c)

Query if the char is Base64 .

Parameters
cthe char
Returns
True if the char is Base64