From 5a92c70b33c678aadd9c768c1b73887e5441bc89 Mon Sep 17 00:00:00 2001 From: qasikfwn <51647241+qasikfwn@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:35:14 +1100 Subject: [PATCH] Update helper script --- scratch.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/scratch.py b/scratch.py index a706b9539..4b22935ab 100644 --- a/scratch.py +++ b/scratch.py @@ -142,8 +142,8 @@ print(result_int) -data = "root_point" -seed = 0xfeebdaeddeadbeef +data = "bardin_complete_all_levels_desc" +seed = 0x0 # s = bytes.fromhex(data)[::-1].decode("utf-8") @@ -161,4 +161,15 @@ s = bytes.fromhex(data).decode("utf-8") print(s) """ -# print(f"{wrapping_mul(0xC6A4A7935BD1E995, 0x773e34d9d52c9ef8):016x}") \ No newline at end of file +# print(f"{wrapping_mul(0xC6A4A7935BD1E995, 0x773e34d9d52c9ef8):016x}") + +reverse = "69686361 6d657665 5f746e65 6c6c6f68 00005f79" +r_s = reverse.split(" ") +r_s = [bytearray.fromhex(s) for s in r_s] +for x in r_s: + x.reverse() +fnl = bytearray() +for x in r_s: + fnl += x + +print(fnl.decode("utf-8"))