RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::Security::Cryptography::Hex Class Reference
Inheritance diagram for System::Security::Cryptography::Hex:
System::Security::Cryptography::CryptographyBase

Static Public Member Functions

static String hex2b64 (String h)
 Converts a hex to base64 string More...
 
static String b64tohex (String s)
 Converts a base64 string to hex More...
 
static intptr_t str_encode (LPTSTR lpdata, intptr_t chars_count, const void *lpsrc, intptr_t bytes_size)
 Encodes a serial object by hexadecimal encoding into null-terminated string More...
 
static intptr_t str_decode (void *lpout, intptr_t bytes_size, LPCTSTR lpdata, intptr_t chars_count)
 Decodes a string encoded by hexadecimal encoding into hex More...
 
static int hexencode (unsigned char *buf, int buf_size, const void *src, int src_size)
 Encodes a serial object by hexadecimal encoding More...
 
static int hexdecode (unsigned char *buf, int buf_size, const void *src, int src_size)
 Decodes a string encoded by hexadecimal encoding More...
 
- Static Public Member Functions inherited from System::Security::Cryptography::CryptographyBase
static void Collect (LPVOID ptr_data)
 

Member Function Documentation

String Hex::b64tohex ( String  s)
static

Converts a base64 string to hex

String Hex::hex2b64 ( String  h)
static

Converts a hex to base64 string

int Hex::hexdecode ( unsigned char *  buf,
int  buf_size,
const void *  src,
int  src_size 
)
static

Decodes a string encoded by hexadecimal encoding

Returns
bytes written, include '\0' or not
int Hex::hexencode ( unsigned char *  buf,
int  buf_size,
const void *  src,
int  src_size 
)
static

Encodes a serial object by hexadecimal encoding

Returns
bytes written, include '\0'
intptr_t Hex::str_decode ( void *  lpout,
intptr_t  bytes_size,
LPCTSTR  lpdata,
intptr_t  chars_count 
)
static

Decodes a string encoded by hexadecimal encoding into hex

Returns
bytes written
intptr_t Hex::str_encode ( LPTSTR  lpdata,
intptr_t  chars_count,
const void *  lpsrc,
intptr_t  bytes_size 
)
static

Encodes a serial object by hexadecimal encoding into null-terminated string

Returns
chars written, = length of lpdata

The documentation for this class was generated from the following files: