Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
Represents a challenge, with binary serialization support

src/c/r/crtauth-HEAD/crtauth/server.py   crtauth(Download)
    def create_challenge(self, username):
        """This method creates a challenge suitable for ssh-agent signing."""
        key = self.key_provider.get_key(username)
 
        c = protocol.Challenge(fingerprint=key.fingerprint(),

src/c/r/crtauth-HEAD/test/protocol_test.py   crtauth(Download)
def test_serialize_challenge():
    unique_data = '\x859\x9eHK\xc6\x83=\x0c,\xda\xf7K\x8e\xc3\xea}:$\xf8'
    challenge = protocol.Challenge(unique_data=unique_data,
                                   valid_from=1365084334, valid_to=1367073504,
                                   fingerprint="\t\x02\xc8|\x83[",
def test_serialize_padding():
    for i in xrange(1, 5):
        user = "a" * i
        unique_data = '\x859\x9eHK\xc6\x83=\x0c,\xda\xf7K\x8e\xc3\xea}:$\xf8'
        challenge = protocol.Challenge(unique_data=unique_data,