Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enigma Decoding Problem
#2
You should post the C++ code so we know what it is supposed to do.

What type was the checksum variable in the C++ code? A lot of C checksum algorithms rely on overflow to limit the checksum to 8 bits or 16 bits or whatever. Python does not have fixed size integers, so you need to use modulo or arithmetic and operations to limit the size of the checksum.
Reply


Messages In This Thread
Enigma Decoding Problem - by krisarmstrong - Dec-12-2023, 05:16 PM
RE: Enigma Decoding Problem - by deanhystad - Dec-12-2023, 07:38 PM
RE: Enigma Decoding Problem - by krisarmstrong - Dec-13-2023, 06:37 PM
RE: Enigma Decoding Problem - by deanhystad - Dec-13-2023, 08:23 PM
RE: Enigma Decoding Problem - by Larz60+ - Dec-14-2023, 10:42 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Numeric Enigma Machine idev 9 819 Mar-29-2024, 06:15 PM
Last Post: idev
  Decoding lat/long in file name johnmcd 4 522 Mar-22-2024, 11:51 AM
Last Post: johnmcd
  json decoding error deneme2 10 4,076 Mar-22-2023, 10:44 PM
Last Post: deanhystad
  flask app decoding problem mesbah 0 2,440 Aug-01-2021, 08:32 PM
Last Post: mesbah
  Decoding a serial stream AKGentile1963 7 8,989 Mar-20-2021, 08:07 PM
Last Post: deanhystad
  xml decoding failure(bs4) roughstroke 1 2,343 May-09-2020, 04:37 PM
Last Post: snippsat
  python3 decoding problem but python2 OK mesbah 0 1,859 Nov-30-2019, 04:42 PM
Last Post: mesbah
  utf-8 decoding failed every time i try adnanahsan 21 11,262 Aug-27-2019, 04:25 PM
Last Post: adnanahsan
  hex decoding in Python 3 rdirksen 2 4,713 May-12-2019, 11:49 AM
Last Post: rdirksen
  Decoding log files in binary using an XML file. captainfantastic 1 2,506 Apr-04-2019, 02:24 AM
Last Post: captainfantastic

Forum Jump:

User Panel Messages

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