Nilorea Library
C utilities for networking, threading, graphics
CYPHERS: BASE64 (encode / decode) (from / to) a N_STR *string

Functions

N_STRn_base64_decode (N_STR *bufcoded)
 decode a N_STR *string More...
 
N_STRn_base64_encode (N_STR *string)
 encode a N_STR *string More...
 
bool n_isalpha (char c)
 is_alpha More...
 
bool n_islower (char c)
 test if char c is lowercase More...
 
bool n_isupper (char c)
 test if char c is uppercase More...
 
char n_tolower (char c)
 is_alpha More...
 
char n_toupper (char c)
 is_alpha More...
 

Detailed Description

Function Documentation

◆ n_base64_decode()

N_STR * n_base64_decode ( N_STR bufcoded)

decode a N_STR *string

Parameters
bufcodedthe N_STR *string to decode
Returns
a new base64 N_STR *decoded string or NULL

Definition at line 174 of file n_base64.c.

References new_nstr(), and pr2six.

Referenced by n_vigenere_decode_file(), n_vigenere_decode_qa(), and n_vigenere_quick_decode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ n_base64_encode()

N_STR * n_base64_encode ( N_STR input)

encode a N_STR *string

Parameters
inputthe N_STR *string to encode
Returns
a new base64 N_STR *encoded string or NULL

Definition at line 249 of file n_base64.c.

References basis_64, n_base64_encode_len(), and new_nstr().

Referenced by n_vigenere_encode_file(), n_vigenere_encode_qa(), n_vigenere_get_question(), and n_vigenere_quick_encode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ n_isalpha()

bool n_isalpha ( char  c)

is_alpha

Parameters
ccharater to look up
Returns
TRUE or FALSE

Definition at line 114 of file n_base64.c.

References ascii_lower_case_lookup_table, and ascii_upper_case_lookup_table.

◆ n_islower()

bool n_islower ( char  c)

test if char c is lowercase

Parameters
ccharater to look up
Returns
TRUE or FALSE

Definition at line 102 of file n_base64.c.

References ascii_lower_case_lookup_table.

Referenced by n_vigenere_cypher_thread().

+ Here is the caller graph for this function:

◆ n_isupper()

bool n_isupper ( char  c)

test if char c is uppercase

Parameters
ccharater to look up
Returns
TRUE or FALSE

Definition at line 90 of file n_base64.c.

References ascii_upper_case_lookup_table.

Referenced by n_vigenere_cypher_thread().

+ Here is the caller graph for this function:

◆ n_tolower()

char n_tolower ( char  c)

is_alpha

Parameters
ccharater to look up
Returns
lowercased char c

Definition at line 140 of file n_base64.c.

References ascii_upper_case_lookup_table.

Referenced by n_vigenere_cypher_thread().

+ Here is the caller graph for this function:

◆ n_toupper()

char n_toupper ( char  c)

is_alpha

Parameters
ccharater to look up
Returns
uppercased char c

Definition at line 126 of file n_base64.c.

References ascii_lower_case_lookup_table.

Referenced by n_vigenere_cypher_thread().

+ Here is the caller graph for this function: