6 Module CYPHER_BASE64
gullradriel edited this page 2026-10-29 20:54:40 +01:00

CYPHERS: BASE64 (encode / decode) (from / to) a N_STR *string

Functions

Name
char n_toupper(char c)
convert a character to uppercase
char n_tolower(char c)
convert a character to lowercase
bool n_isupper(char c)
check if a character is uppercase
bool n_islower(char c)
check if a character is lowercase
bool n_isalpha(char c)
check if a character is alphabetic
N_STR * n_base64_encode(N_STR * string)
encode a N_STR to base64
N_STR * n_base64_decode(N_STR * bufcoded)
decode a base64 encoded N_STR

Functions Documentation

function n_toupper

char n_toupper(
    char c
)

convert a character to uppercase

Parameters:

  • c character to convert

Return: uppercased char c

convert char to upper case

convert a character to uppercase

function n_tolower

char n_tolower(
    char c
)

convert a character to lowercase

Parameters:

  • c character to convert

Return: lowercased char c

convert char to lower case

convert a character to lowercase

function n_isupper

bool n_isupper(
    char c
)

check if a character is uppercase

Parameters:

  • c character to look up

Return: TRUE or FALSE

test if char c is uppercase

check if a character is uppercase

function n_islower

bool n_islower(
    char c
)

check if a character is lowercase

Parameters:

  • c character to look up

Return: TRUE or FALSE

test if char c is lowercase

check if a character is lowercase

function n_isalpha

bool n_isalpha(
    char c
)

check if a character is alphabetic

Parameters:

  • c character to look up

Return: TRUE or FALSE

test if char c is alphabetic

check if a character is alphabetic

function n_base64_encode

N_STR * n_base64_encode(
    N_STR * string
)

encode a N_STR to base64

Parameters:

  • input the N_STR *string to encode

Return: a new base64 N_STR *encoded string or NULL

encode a N_STR *string

encode a N_STR to base64

function n_base64_decode

N_STR * n_base64_decode(
    N_STR * bufcoded
)

decode a base64 encoded N_STR

Parameters:

  • bufcoded the N_STR *string to decode

Return: a new base64 N_STR *decoded string or NULL

decode a N_STR *string

decode a base64 encoded N_STR