Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Asking a favour
#11
Sorry, I wrote the program to run it in a terminal with a command such as
Output:
python theprogram.py -n 3 -m
If you're running the program from an IDE such as idle, you may need to hard code the arguments in the program, for example add
import sys
if 'idlelib' in sys.modules:
    sys.argv.extend(['-n', '3', '-m'])
just before the line ns = parser.parse_args().

The next step is to learn python and develop the program yourself...
Reply
#12
Thank you so much! I am actually studying the code you wrote, but it's not a beginner level stuff I guess. I already started learning Python last year, but for some reason abandoned it. Might get back at some point as it's a lot of fun and programs like this make life so much easier! I can't thank you enough! Figured out it is supposed to be used from the Terminal and now I have keys for the whole month, in about 2 seconds plus 3 minutes editing the code book I made in a word processor. Superb! How else could I thank you than in an encrypted message using the KL-7 and a key generated by your awesome Python program!

THE MESSSAGE:

P 142230Z DEC 18
FM KITYATYI
TO GRIBOUILLIS
GR 41
BT
26682 QUEBEC KILO BRAVO FOXTROT CHARLIE
PPCMS LVIYC TEZCW TBMBO BRCXY UUOAA BDROI ZCFKN SQXPP HYWDZ
XEZGS UIDGZ NVCVY NXBZM DIXGZ ZNSUU LTZQJ XEAYN XKRTH EEHPW
ZZCBE TQERE NCYAS QQRTK DBESV RQRZC DBWYU BBQEL JDHAC NQQEC
WNOJM YMMVI RIPMM NKLQZ XSTMY AZBSK UKRCH NEHDZ RFDMV OWNTB
MMHVP
BT

THE KEY TO DECIPHER MESSAGE:

14|26682 <--- DATE KEY IS VALID FOR|SYSTEM INDICATOR (TO IDENTIFY WHICH KEY TO USE)
1 2 3 4 5 6 7 8
H F L D J B I G
18 16 36 26 18 24 3 30
8 6 2 11 9 4 7
R E+ M+ T S H G+

Merry Christmas to you all!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020