add_padding

gafaelfawr.util.add_padding(encoded)

Add padding to base64 encoded bytes.

Parameters:

encoded (str) – A base64-encoded string, possibly with the padding removed.

Returns:

A correctly-padded version of the encoded string.

Return type:

str