Reply to thread
GBAtemp.net - The Independent Video Game Community
Search
Search titles only
By:
Search titles only
By:
Reply to thread
GBAtemp.net - The Independent Video Game Community
Home
Log in
Terms & Rules
Donate
Forums
New posts
Search forums
Groups
Public Events
New
New posts
New resources
New blog entries
New profile posts
New blog entry comments
New threadmarks
Latest activity
Cheats
Cheat Codes Add and Request group
The Legend of Zelda: Tears of the Kingdom cheat codes
Pokémon Legends: Arceus cheat codes
Xenoblade Chronicles 3 cheat codes
Fire Emblem Engage cheat codes
Request a cheat...
Tutorials
Nintendo Switch tutorials
Nintendo 3DS tutorials
Nintendo Wii U tutorials
Reviews
Overview
Official reviews
Downloads
Latest reviews
Search resources
Blogs
New entries
New comments
Blog list
Search blogs
Chat
Top chatters
Search
Search titles only
By:
Search titles only
By:
Log in
Register
New posts
Search forums
Log in
Register
Home
Forums
PC, Console & Handheld Discussions
Computer Technology and Gaming
python
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sarkwalvein" data-source="post: 8298984" data-attributes="member: 87038"><p>What kind of explanation do you want?</p><p>I hope the following one is ok.</p><p></p><p>The calculation part is just this:</p><p>[code]</p><p> fullnum = form["date"][0] + form["number"][0][4:8]</p><p></p><p> crc = CRC32().crc32(fullnum)</p><p> code = ((crc ^ 0xaaaa) + 0x14c1) % 100000</p><p>[/code]</p><p></p><p>It takes four digits for the date in format "MMDD" and concatenates it with the last four digits from the confirmation number.</p><p>E.g. for May 1st, with a code 12345678, it generates the following fullnum string "05015678".</p><p></p><p>Then it calculates the CRC32 for that fullnum string.</p><p>It does a XOR between the calculated CRC and 0xaaaa.</p><p>It adds to it 0x14C1.</p><p>And then from the resulting decimal number, it extracts only the last 5 digits.</p><p></p><p>And that is your reset code.</p><p></p><p>PS: Yeah, this implies that for calculating the reset code, the current year does not matter, and neither do the first 4 digits from the confirmation number.</p></blockquote><p></p>
[QUOTE="sarkwalvein, post: 8298984, member: 87038"] What kind of explanation do you want? I hope the following one is ok. The calculation part is just this: [code] fullnum = form["date"][0] + form["number"][0][4:8] crc = CRC32().crc32(fullnum) code = ((crc ^ 0xaaaa) + 0x14c1) % 100000 [/code] It takes four digits for the date in format "MMDD" and concatenates it with the last four digits from the confirmation number. E.g. for May 1st, with a code 12345678, it generates the following fullnum string "05015678". Then it calculates the CRC32 for that fullnum string. It does a XOR between the calculated CRC and 0xaaaa. It adds to it 0x14C1. And then from the resulting decimal number, it extracts only the last 5 digits. And that is your reset code. PS: Yeah, this implies that for calculating the reset code, the current year does not matter, and neither do the first 4 digits from the confirmation number. [/QUOTE]
Insert quotes…
Verification
Post reply
Home
Forums
PC, Console & Handheld Discussions
Computer Technology and Gaming
python
General chit-chat
Help
Users
Settings
Notifications
Miscellaneous
Inverse message direction
Display editor on top
Enable maximized mode
Display images as links
Hide bot messages
Hide statuses
Hide chatter list
Show messages from ignored users
Temporarily disable chat
Receive mention alerts
Sound notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Desktop notifications
Normal messages
Private messages
Whisper messages
Mention messages
Bot messages
Options
Options
View top chatters
Xdqwerty
Loading…
what are you looking at?
@
BigOnYa
:
Same with uremum, she's now $2 a month
+1
Today at 4:29 PM
@
K3Nv2
:
Also seizures come and and go they don't have an off switch like that it all depends
Today at 4:40 PM
@
BakerMan
:
alright guys, who would win, sonic or goku?
Today at 5:41 PM
@
BigOnYa
:
Knuckles
Today at 5:44 PM
@
BakerMan
:
knuckles vs broly could also be a good one tbh
+1
Today at 5:45 PM
@
BigOnYa
:
Bakerman vs. Wario
Today at 5:47 PM
@
BigOnYa
:
Announcer - "Ok folks we have a good fight today, Bakerman takes on Wario. This should be a good fight. Wait...why is bakerman undressing?"
Today at 5:51 PM
@
BakerMan
:
Oh sorry, this is Wario? I thought it was your wife
+1
Today at 5:58 PM
E
@
eenterx
:
hello guys how do i type on forums?
Today at 5:59 PM
E
@
eenterx
:
i am the new user
+1
Today at 5:59 PM
@
BigOnYa
:
I am the Eggman... I am the Walrus...
+1
Today at 6:01 PM
E
@
eenterx
:
oh ok
Today at 6:01 PM
@
RedColoredStars
:
What does it tell you when you try to type?
Today at 6:04 PM
@
BakerMan
:
@BigOnYa
speaking of eggmen... eggman for smash
Today at 6:08 PM
@
RedColoredStars
:
You click where it says "Write your reply..." and start typing? lol
+1
Today at 6:09 PM
@
RedColoredStars
:
https://suckmybeatles.com/
+1
Today at 6:11 PM
@
BakerMan
:
wow yeah john does suck
Today at 7:38 PM
@
Veho
:
https://youtube.com/watch?v=Y23PPkftXIY
+1
Today at 7:42 PM
@
SylverReZ
:
https://www.youtube.com/watch?v=kyhlqvXzsCE
+1
Today at 8:06 PM
@
SylverReZ
:
@Dumpflam
, Report it or contact staff.
Today at 8:07 PM
@
Sonic Angel Knight
:
DAYTONAAAAAAAA!!!!!!!!!!
+1
Today at 8:51 PM
@
Xdqwerty
:
Hello
44 minutes ago
@
Xdqwerty
:
@Sonic Angel Knight
,
https://youtu.be/UEZZk3sVl4s?si=vZsZ3rMvZSZK3Xuv
40 minutes ago
@
BakerMan
:
40 minutes ago
@
Xdqwerty
:
@BakerMan
,
https://youtu.be/KaMSXIRReOo?si=2hRoijJtiwPUHXk5
10 minutes ago
Submit
@
Xdqwerty
:
@BakerMan, https://youtu.be/KaMSXIRReOo?si=2hRoijJtiwPUHXk5
10 minutes ago
Chat
1