JubeatPlus 3.9.11
Loading...
Searching...
No Matches
cipher_keys.h File Reference

The application's Blowfish key factories. More...

import <Foundation/Foundation.h>
Include dependency graph for cipher_keys.h:

Go to the source code of this file.

Functions

NS_ASSUME_NONNULL_BEGIN NSData * CreateTextureCipherKey (void)
 The Blowfish key for encrypted texture assets.
NSData * CreateTuneInfoCipherKey (void)
 The Blowfish key for encrypted tune/music metadata.
NSData * CreateMissionDataCipherKey (void)
 The Blowfish key for the encrypted save file.
NSData * CreateResourceDataCipherKey (void)
 The Blowfish key for the challenge-resource (panel) data.

Detailed Description

The application's Blowfish key factories.

Reconstructed from Ghidra program Jubeat (image base 0x100000000). All

Ghidra address:
values are offsets relative to that image base.

Each of these takes no receiver argument and belongs to no class, so the reconstruction rules' search for an owning class is exhausted and they stay free functions. Each derives a Blowfish key as the MD5 digest of a fixed passphrase and returns it as 16 bytes of NSData , ready to hand to -[BFCodec cipherInit:] . The passphrases are assembled on the stack in pieces — a 16-byte q -register store of a shared rodata literal at 0x28f980 followed by register immediates — so that no full passphrase appears contiguously in the file. The reconstructions below fold each assembly back into the plaintext string it spells, with the decoded value in a comment.

Two more members of the same seven-function cluster, GetBgmCipherKey (0x7f7a0) and CreateResourceDataCipherKey (0x7fa54), live elsewhere in the tree.

Function Documentation

◆ CreateMissionDataCipherKey()

NSData * CreateMissionDataCipherKey ( void )

The Blowfish key for the encrypted save file.

MD5("js^_Yjs5ea`YUe6FQSAH;@S") — a 23-character obfuscated passphrase. The save-file encrypt and decrypt paths each derive the key independently rather than sharing one.

Returns
The key material, 16 bytes, to be handed to -[BFCodec cipherInit:] . @ghidraAddress 0x7f904 */ NSData *CreateSaveDataCipherKey(void);

/** The Blowfish key protecting the "Lab" URL and its table view.

MD5("js^_YjfYXH`_]MQM;6.") — a 19-character obfuscated passphrase, the shortest of the cluster. -[JubeatAppDelegate application:didFinishLaunchingWithOptions:] open-codes this same derivation inline (see CreateLabEncryptedData ) rather than calling here.

Returns
The key material, 16 bytes, to be handed to -[BFCodec cipherInit:] .
Ghidra address:
0x7f9b0 */ NSData *CreateLabUrlCipherKey(void);

/** The Blowfish key for per-sheet mission data.

MD5("jubeatmissiondata") — a 17-character passphrase. Distinct from CreateSaveDataCipherKey despite both being save-related: that one guards the main save file, this one the mission records.

Returns
The key material, 16 bytes, to be handed to -[BFCodec cipherInit:] .
Ghidra address:
0x7faf0

◆ CreateResourceDataCipherKey()

NSData * CreateResourceDataCipherKey ( void )

The Blowfish key for the challenge-resource (panel) data.

Returns
The key material, to be handed to -[BFCodec cipherInit:] .
Ghidra address:
0x7fa54

◆ CreateTextureCipherKey()

NS_ASSUME_NONNULL_BEGIN NSData * CreateTextureCipherKey ( void )

The Blowfish key for encrypted texture assets.

MD5("copious plus knit ripples") — a 25-character passphrase.

Returns
The key material, 16 bytes, to be handed to -[BFCodec cipherInit:] .
Ghidra address:
0x7f6ec

◆ CreateTuneInfoCipherKey()

NSData * CreateTuneInfoCipherKey ( void )

The Blowfish key for encrypted tune/music metadata.

MD5("Konami Bemani Mobile iOS") — a 24-character passphrase. Its rodata prefix is shared with GetBgmCipherKey , which differs only in the "iOS"/"iPad" tail, so the two produce entirely different keys.

Returns
The key material, 16 bytes, to be handed to -[BFCodec cipherInit:] .
Ghidra address:
0x7f854