From f2d2f88bb3bb8cccb13fdd18383d9795faf2e220 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sun, 19 Feb 2017 20:00:35 +0100 Subject: [PATCH] fix version select --- SPHDecode/Implementations/Cryptography.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SPHDecode/Implementations/Cryptography.cs b/SPHDecode/Implementations/Cryptography.cs index 135a469..f714071 100644 --- a/SPHDecode/Implementations/Cryptography.cs +++ b/SPHDecode/Implementations/Cryptography.cs @@ -23,13 +23,15 @@ public static byte[] Decrypt(byte[] clearText) byte[] data; try { data = AESHelper(V3KEY, V3IV, clearText, true); + response = Zlib.DecompressData(data); } catch (Exception) { data = AESHelper(V2KEY, V2IV, clearText, true); + response = Zlib.DecompressData(data); } - response = Zlib.DecompressData(data); + } catch (Exception ex) {