Python Forum
Convert C code to Python code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert C code to Python code
#5
Thanks for getting back to me again. I'm going to put this mini project on the back burner for now and focus on some other projects. Eventually I will come back and try again to figure out my how to solve the tmpString index error.
Basically the purpose of this relatively small program is to decrypt various ROT encryption algorithms.
This is what the correct output is from the C program that I was trying to convert to python.

[1]: Candidate (ROT5): what is the name of the system used by ham operators to make free phone calls ?
[2]: Candidate (ROT1): qvnb fuf piy bnun is piy qrvclnh pztvkn quasy w jib uyipmh pidaup ?
[3]: Candidate (ROT16): what password did i give to setup an account on the ark ?
[4]: No Candidate.
[5]: Candidate (ROT2): what town did i hide out in until the juvenile court lost jurisdiction over me ?
[6]: Candidate (ROT12): pdtt tqcn wew sndtat htmouhc tod is y futuxd ?
[7]: Candidate (ROT19): what is the name of the pacific bell employee who read the internal memo about my hacking activitiec over the ham radio ?
[8]: No Candidate.
[9]: Candidate (ROT22): what is the term for software burned on the chip that novatel sent me ?
[10]: No Candidate.
[11]: Candidate (ROT18): what town did my father live in when i moved in with him ?
[12]: No Candidate.
[13]: Candidate (ROT4): what is the name of the pi firm that was wiretapped by pacific bell ?
[14]: No Candidate.
[15]: Candidate (ROT20): vghbg bnlozmx lzjdr sgd cduhbd sgzs kdvhr trdc sn ohbj to zmx qzchn rhfzkr mdzq dqhb ?
[15]: Candidate (ROT21): which company makes the device that lewis used to pick up any radio sigals near eric ?
[16]: No Candidate.
[17]: Candidate (ROT25): what is the name of the apartment complex where i tracked down eric heinz ?
[18]: Candidate (ROT8): lilq xh xwf lzgdrnn zc iwi uct pfjes usxi zic nndjxvt xlp phwxhybs is ?
[18]: Candidate (ROT19): wtwb is ihq wkrocyy kn tht fne aqupd fdit ktn yyouige iwa ashisjmd td ?
[19]: Candidate (ROT12): what is name of the transaction to find a person's social security number using their name and date of birth ?
[20]: No Candidate.
[21]: Candidate (ROT20): what was our nickname given to terry hardy ?
[22]: Candidate (ROT6): frhf bne crl ejpdnd umrr in ezqi saa doq brxuc mmwta lykq ts fqo kmd ?
[23]: Candidate (ROT24): what electronic device did the fbi intentionally break when they searched my apartment in calabasas ?
[24]: Candidate (ROT15): fdwn ry yqa juva to pdy bptaa sbnnj r kqnaws mir cwrjbpeajptao ?
[25]: Candidate (ROT1): what town has the alma mater for the real eric weiss ?
[26]: Candidate (ROT2): vngs eno mgsd ws in rbuuxhbr pk einc cgmea itf oo nzl n xjejmkyr knns bshtzdz vj wut bgx ?
[26]: Candidate (ROT6): zrkw irs qkwh aw mr vfyyblfv to imrg gkqie mxj ss rdp r bninqocv orrw fwlxdhd zn ayx fkb ?
[27]: Candidate (ROT9): what is the name of the bokstore i frequented in denver ?
[28]: No Candidate.
[29]: No Candidate.
[30]: Candidate (ROT22): djde aftv vh ozsh jak k stsh of ajh sh jgfhihc'i llxpeh ?
[31]: Candidate (ROT3): what x25 network did i use to the dmv mainframe ?
[32]: No Candidate.
[33]: Candidate (ROT15): who wrote the paper on ip spoofing that jsz askee me about ?
[34]: No Candidate.
[35]: No Candidate.
[36]: Candidate (ROT4): ipxo gpx zovlf bodfr in tfmw qkop an azzcrkxnf wc lg tnmzqhfbi amwmdm f gpqzdl zr av edn ?
[36]: Candidate (ROT12): qxfw oxf hwdtn jwlnz qv bnue yswx iv ihhkzsfvn ek to bvuhypnjq iueulu n oxyhlt hz id mlv ?
[36]: Candidate (ROT23): biqh ziq shoey uhwyk bg myfp jdhi tg tssvkdqgy pv ez mgfsjayub tfpfwf y zijswe sk to xwg ?
[37]: No Candidate.
[38]: No Candidate.
Thanks again for the advice and may the force be with you.
Peace
Reply


Messages In This Thread
Convert C code to Python code - by lostMarbles - Sep-11-2018, 11:45 AM
RE: Convert C code to Python code - by ichabod801 - Sep-11-2018, 12:35 PM
RE: Convert C code to Python code - by lostMarbles - Sep-17-2018, 09:27 AM
RE: Convert C code to Python code - by ichabod801 - Sep-17-2018, 06:09 PM
RE: Convert C code to Python code - by lostMarbles - Sep-18-2018, 05:50 AM
RE: Convert C code to Python code - by ichabod801 - Sep-18-2018, 04:43 PM
RE: Convert C code to Python code - by pcsailor - Sep-19-2018, 06:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Equivalent Python code from VBA Mishal0488 4 1,064 May-02-2024, 10:17 PM
Last Post: DeaD_EyE
  Problem Converting Tradingview Indicator to Python code kralxs 1 329 Apr-27-2024, 06:10 PM
Last Post: kralxs
  Why can I not see the code correctly in Python IDLE.? Trump 8 827 Apr-04-2024, 07:47 AM
Last Post: jonesphedra
Sad Selenium update broke python code genericusername12414 1 297 Mar-16-2024, 07:33 PM
Last Post: snippsat
  Algorithm for extracting comments from Python source code Pavel1982 6 675 Feb-28-2024, 09:52 PM
Last Post: Pavel1982
  Python best library for Excel reports & review of existing code MasterOfDestr 4 852 Feb-14-2024, 03:39 PM
Last Post: MasterOfDestr
Lightbulb python code debuging yunus 1 386 Feb-11-2024, 03:48 PM
Last Post: deanhystad
  Python code to set column width 1418 11 1,542 Jan-20-2024, 07:20 AM
Last Post: Pedroski55
  Python code for alignment and font size 1418 0 367 Jan-14-2024, 03:56 AM
Last Post: 1418
  My code works on Jupyter Lab/Notebook, but NOT on Visual Code Editor jst 4 1,177 Nov-15-2023, 06:56 PM
Last Post: jst

Forum Jump:

User Panel Messages

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