Skip to content

Commit

Permalink
Make a couple things into consts and add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
TraceEntertains committed Aug 31, 2024
1 parent adaf7b1 commit 3a91135
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tns2tool/Cryptography.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ namespace TNS2Crypto
public static class Cryptography
{
// DonName (decoded)
public static readonly string SeedBaseA = "VR32JhGV34nauGMLbNFHvPc5XqAkwjiB_";
public const string SeedBaseA = "VR32JhGV34nauGMLbNFHvPc5XqAkwjiB_";

// KatsuName (decoded)
public static readonly string SeedBaseB = "WQ3hcptFS4XkpugCn3fWA3qcPzSbY6fm_";
public const string SeedBaseB = "WQ3hcptFS4XkpugCn3fWA3qcPzSbY6fm_";

// DonCount (decoded)
public static readonly int KeyIterations = 7849;
public const int KeyIterations = 7849;

// KatsuCount (decoded)
public static readonly int IVIterations = 5438;
public const int IVIterations = 5438;

public static byte[] DecryptAllBytesAesAndGZip(string path)
{
Expand Down
4 changes: 3 additions & 1 deletion tns2tool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ namespace CryptoCLI
{
class Program
{
public const string Version = "1.1";

static void Main(string[] args)
{
if (args.Length < 3)
{
Console.WriteLine("Taiko no Tatsujin: Rhythm Festival (PC/XBOX/PS5) File Decryption and Encryption Tool");
Console.WriteLine($"Taiko no Tatsujin: Rhythm Festival (PC/XBOX/PS5) File Decryption and Encryption Tool (v{Version})");
Console.WriteLine("Special Thanks to TraceEntertains for the decryption/encryption logic used here");
Console.WriteLine("");
Console.WriteLine("Usage:");
Expand Down

0 comments on commit 3a91135

Please sign in to comment.