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')
Test wire.QOTD protocol.
dataset/ETHPy150Open smore-inc/tinys3/tinys3/auth.py/S3Auth.sign--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_protocols.py/WireTestCase.test_QOTD