bareos.util.bareosbase64.BareosBase64
- class bareos.util.bareosbase64.BareosBase64[source]
Bases:
objectBareos specific base64 implementation.
Initialize the Base 64 conversion routines.
Methods
Convert a base 64 string to integer.
Convert an integer to base 64.
Convert a string to base64.
Compute the 2's compliment of int value val.
Attributes
base64_digits- base64_to_int(base64)[source]
Convert a base 64 string to integer.
- Parameters:
base64 (str) – base 64 string.
- Returns:
Integer value of the base64 string.
- Return type:
int
- int_to_base64(value)[source]
Convert an integer to base 64.
- Parameters:
value (int) – integeer value.
- Returns:
base 64 representation of value.
- Return type:
str