From 7d7c582d2f32b5fb6919a6c5a9e64f386337a129 Mon Sep 17 00:00:00 2001 From: Jennifer Taylor Date: Wed, 13 Aug 2025 17:31:33 +0000 Subject: [PATCH] Allow decryption/encryption of info.bin. --- bemani/utils/nvram.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bemani/utils/nvram.py b/bemani/utils/nvram.py index fac5191..146e6cc 100644 --- a/bemani/utils/nvram.py +++ b/bemani/utils/nvram.py @@ -30,6 +30,12 @@ def main() -> None: default=False, help="Add null padding on encryption.", ) + parser.add_argument( + "--no-reset", + action="store_true", + default=False, + help="Don't reset decryption every 768 bytes.", + ) args = parser.parse_args() with open(args.file, "rb") as bfp: @@ -42,7 +48,11 @@ def main() -> None: assert (len(data) % 768) == 0 - chunks = [data[x:x + 768] for x in range(0, len(data), 768)] + if args.no_reset: + chunks = [data] + else: + chunks = [data[x:x + 768] for x in range(0, len(data), 768)] + outputs = [] proto = EAmuseProtocol()