def sign(self, string_to_sign):
        digest = hmac.new(self.secret_key.encode('utf8'),
                          msg=string_to_sign.encode('utf8'),
                          digestmod=hashlib.sha1).digest()

        return base64.b64encode(digest).strip().decode('ascii')
Generates a signature for the given string
dataset/ETHPy150Open smore-inc/tinys3/tinys3/auth.py/S3Auth.sign