:py:mod:`kms.utils` =================== .. py:module:: kms.utils Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: kms.utils.decode kms.utils.encode .. py:function:: decode(payload) https://en.wikipedia.org/wiki/Base64#URL_applications modified Base64 for URL variants exist, where the + and / characters of standard Base64 are respectively replaced by - and _ Does not make any assumptions about encoding -- if you're encoding a bytes payload then `foo == decode(encode(foo))`, but if `foo` is a string you'll need to `.decode()` manually according to your expected encoding scheme. .. py:function:: encode(payload) https://en.wikipedia.org/wiki/Base64#URL_applications modified Base64 for URL variants exist, where the + and / characters of standard Base64 are respectively replaced by - and _