AAS HTTP Client Documentation
Loading...
Searching...
No Matches
aas_http_client.utilities.encoder Namespace Reference

Functions

str decode_base_64 (str text)
 Decode a Base64 encoded string.
 
str encode_base_64 (str text, bool add_padding=False)
 Encode a string to Base64.
 
bool is_base_64_encoded (str value)
 Check if a string is Base64 encoded.
 

Function Documentation

◆ decode_base_64()

str aas_http_client.utilities.encoder.decode_base_64 ( str  text)

Decode a Base64 encoded string.

Parameters
textBase64 encoded string to decode
Returns
Decoded string

Definition at line 15 of file encoder.py.

Here is the caller graph for this function:

◆ encode_base_64()

str aas_http_client.utilities.encoder.encode_base_64 ( str  text,
bool   add_padding = False 
)

Encode a string to Base64.

Parameters
textString to encode
add_paddingWhether to add padding to the encoded string
Returns
Base64 encoded string

Definition at line 30 of file encoder.py.

◆ is_base_64_encoded()

bool aas_http_client.utilities.encoder.is_base_64_encoded ( str  value)

Check if a string is Base64 encoded.

Parameters
valueString to check
Returns
True if the string is Base64 encoded, False otherwise

Definition at line 44 of file encoder.py.

Here is the call graph for this function: