Hello,
I changed some simple python client/server chatroom recipe
to include RSA keypair based encryption and signature verification
because I'm sick of someone spying on my conversations on FB and similar.
Here is the code:
https://github.com/lunemec/python-chat
If anyone is interrested
Do Win+R
type: cmd
hit enter.
in the opened cmd write cd C:/where/you/have/the/exe (you can move it to
C: for simplicity)
and run it from there
it will not close this time, and you can see the debugging info.
Enjoy.
On 06/19/2013 08:50 AM, Jack Little wrote:
I compiled a program in python
On 10/21/2013 01:16 PM, Steven D'Aprano wrote:
On Sun, Oct 20, 2013 at 09:15:05PM -0500, Sammy Cornet wrote:
Thank you for help Steven! I intend to correct it. But also I would
like to know if I wrote the correctly in order to the output that I'm
looking for?
I don't know, I didn't study your c
Hi,
I'd suggest using different data structure for the intersect of samples
from a program.
data = {
'program1':
{
'sample1': {'TP53', 'ASD'},
'sample2': {'ASD'},
},
'program2': {
'sample1': {'ASD'}
}
}
this way you can do this:
for program in data:
pr
Hi,
I did a similar thing recently, a chat, that encrypts and signs (for
authenticity) each message sent with private-pub keypair:
https://github.com/lunemec/python-chat.
It is not p2p, it sends messages to server, which decrypts them,
encrypts with its pubkey and sends to all clients for de
Hi,
fist - are you really triyng to have open 64 000 ports? ok, i suppose
you have your reasons, but this is not a good idea - you'll block most
applications that use these ports ..
The problem is with your main function -
you have PORT defined, but it is not global, it is only local, and whe
Post it somewhere on github and I'll try to take a look at it.
Lukas
On 06/10/2014 05:51 PM, Adam Gold wrote:
Hi there. I've been writing a script that is now finished and working
(thanks, in part, to some helpful input from this board). What I'd
really like to do now is go through it with an
Hi,
from the question you're using python 2.x
you can do either: 26.0/12 (float divide by int - it retypes both to
floats and gets you 2.)
or at the beginning do:
from __future__ import division
That will activate python3 way of dividing - which gives you 2.
Lukas.
On 06/12/2014 02:
Hello,
take a look at argparse library.
---
import argparse
parser = argparse.ArgumentParser(description="My prgoram")
parser.add_argument('-y', '--y', help="Y value", required=True)
parser.add_argument('-x', '--x', help="X value", required=True)
def main(x=1, y=2):
print x
print