Пример #1
0
 def sign_string(self, string_to_sign):
     new_hmac = self._get_hmac()
     new_hmac.update(string_to_sign.encode('utf-8'))
     return encodebytes(new_hmac.digest()).decode('utf-8').strip()