#encryption is possible, but not decryption #this object is of type RSAobj_c, which only has public key #this should loop around until a delimeter is read #done with the network stuff, at least for this connection Print "got connection from ", clientsock.getpeername() Print "Server is running on port %d press Ctrl-C to terminate." % port S.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) S = socket.socket(socket.AF_INET, socket.SOCK_STREAM) RSAKey = RSA.generate(512, blah.get_bytes) There isn’t much documentation on the crypto modules. Some people have spent a good 40 hours on this, so I thought I’d post some code to help out. and for another, there’s no auth, and for another, the unsafe pickle might be code execution… below is just a toy for basic usageįor some people in my class this was easy, and others it was difficult. For one, the message shouldn’t be applied directly to RSA – rather, a hash should be used…. As an aside as I’m going through old posts: There’s a lot more that needs to be done to make this “good”.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |