help me decrypt a simple text encrypted with DES ( 15 USD PAYPAL )

If nobody is able to help for free... let's try this way. No sellers allowed.
bazickoff
Posts: 6
Joined: Sat Dec 15, 2018 2:32 pm

help me decrypt a simple text encrypted with DES ( 15 USD PAYPAL )

Post by bazickoff »

Hello I have a simple encrypted text with DES



this is the text : https://jpst.it/1wbZa
this the decryption script : https://www.dropbox.com/s/wsnc5ke10c3k2 ... t.rar?dl=0




this text is from a unity word game : https://apkpure.com/word-crossy-a-cross ... ordmind.en

I searched and I found the encryption and decryption c# script with the KEY I attached the c# script

I tried online decryption tools but no success I'm new to this

please show me how to decrypt the text and encrypted again maybe a bms script

I will pay 15 usd PAYPAL for this help

thank you my friends
atom0s
Posts: 250
Joined: Sat Dec 27, 2014 8:49 pm

Re: help me decrypt a simple text encrypted with DES ( 15 USD PAYPAL )

Post by atom0s »

Go to this site:
https://dotnetfiddle.net/

Then enter this as the code:

Code: Select all

using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;

public class Program
{
   private static string key = "Fotoable";
   public static string DesDecrypt(string decryptString)
   {
      string result;
      try
      {
         byte[] bytes = Encoding.UTF8.GetBytes(key.Substring(0, 8));
         byte[] rgbIV = bytes;
         byte[] array = Convert.FromBase64String(decryptString);
         DESCryptoServiceProvider descryptoServiceProvider = new DESCryptoServiceProvider();
         MemoryStream memoryStream = new MemoryStream();
         CryptoStream cryptoStream = new CryptoStream(memoryStream, descryptoServiceProvider.CreateDecryptor(bytes, rgbIV), CryptoStreamMode.Write);
         cryptoStream.Write(array, 0, array.Length);
         cryptoStream.FlushFinalBlock();
         string @string = Encoding.UTF8.GetString(memoryStream.ToArray());
         cryptoStream.Close();
         memoryStream.Close();
         result = @string;
      }
      catch (Exception exception)
      {
         result = decryptString;
      }
      return result;
   }

   public static void Main()
   {
      Console.WriteLine(DesDecrypt("wFgNPfz6/jj12yFcMm/ds3wrWBrmxeqnp5uN18Bn09Pt3fbo+X7JCmtAc34pfDkdeRxTOo49G1sKXy9xKAi+pFsAdwR/wx9IN6RYWsrV6wo7ROoNgcex441LaUhSKndJaKZgF7HsgaQuSCBvsB4nLICZEimRXVBfLxfsi9rt1BO1DXolp35oBi1KJInOKvfMRqxXP8PXei2HiWu6gdFSmSJgwGZFuKKbeXrpMAFWOJ6nEQIh06uYBg=="));
   }
}


This uses the C# code you posted and will decrypt the strings you linked to. Edit the string inside of the call in this line:

Code: Select all

Console.WriteLine(DesDecrypt("wFgNPfz6/jj12yFcMm/ds3wrWBrmxeqnp5uN18Bn09Pt3fbo+X7JCmtAc34pfDkdeRxTOo49G1sKXy9xKAi+pFsAdwR/wx9IN6RYWsrV6wo7ROoNgcex441LaUhSKndJaKZgF7HsgaQuSCBvsB4nLICZEimRXVBfLxfsi9rt1BO1DXolp35oBi1KJInOKvfMRqxXP8PXei2HiWu6gdFSmSJgwGZFuKKbeXrpMAFWOJ6nEQIh06uYBg=="));


The run the code with the big Run button and it will decrypt the string and print it out.
bazickoff
Posts: 6
Joined: Sat Dec 15, 2018 2:32 pm

Re: help me decrypt a simple text encrypted with DES ( 15 USD PAYPAL )

Post by bazickoff »

atom0s wrote:Go to this site:
https://dotnetfiddle.net/

Then enter this as the code:

Code: Select all

using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;

public class Program
{
   private static string key = "Fotoable";
   public static string DesDecrypt(string decryptString)
   {
      string result;
      try
      {
         byte[] bytes = Encoding.UTF8.GetBytes(key.Substring(0, 8));
         byte[] rgbIV = bytes;
         byte[] array = Convert.FromBase64String(decryptString);
         DESCryptoServiceProvider descryptoServiceProvider = new DESCryptoServiceProvider();
         MemoryStream memoryStream = new MemoryStream();
         CryptoStream cryptoStream = new CryptoStream(memoryStream, descryptoServiceProvider.CreateDecryptor(bytes, rgbIV), CryptoStreamMode.Write);
         cryptoStream.Write(array, 0, array.Length);
         cryptoStream.FlushFinalBlock();
         string @string = Encoding.UTF8.GetString(memoryStream.ToArray());
         cryptoStream.Close();
         memoryStream.Close();
         result = @string;
      }
      catch (Exception exception)
      {
         result = decryptString;
      }
      return result;
   }

   public static void Main()
   {
      Console.WriteLine(DesDecrypt("wFgNPfz6/jj12yFcMm/ds3wrWBrmxeqnp5uN18Bn09Pt3fbo+X7JCmtAc34pfDkdeRxTOo49G1sKXy9xKAi+pFsAdwR/wx9IN6RYWsrV6wo7ROoNgcex441LaUhSKndJaKZgF7HsgaQuSCBvsB4nLICZEimRXVBfLxfsi9rt1BO1DXolp35oBi1KJInOKvfMRqxXP8PXei2HiWu6gdFSmSJgwGZFuKKbeXrpMAFWOJ6nEQIh06uYBg=="));
   }
}


This uses the C# code you posted and will decrypt the strings you linked to. Edit the string inside of the call in this line:

Code: Select all

Console.WriteLine(DesDecrypt("wFgNPfz6/jj12yFcMm/ds3wrWBrmxeqnp5uN18Bn09Pt3fbo+X7JCmtAc34pfDkdeRxTOo49G1sKXy9xKAi+pFsAdwR/wx9IN6RYWsrV6wo7ROoNgcex441LaUhSKndJaKZgF7HsgaQuSCBvsB4nLICZEimRXVBfLxfsi9rt1BO1DXolp35oBi1KJInOKvfMRqxXP8PXei2HiWu6gdFSmSJgwGZFuKKbeXrpMAFWOJ6nEQIh06uYBg=="));


The run the code with the big Run button and it will decrypt the string and print it out.



thank you so much my friend , this works like charm :) , send me your paypal ?
bazickoff
Posts: 6
Joined: Sat Dec 15, 2018 2:32 pm

Re: help me decrypt a simple text encrypted with DES ( 15 USD PAYPAL )

Post by bazickoff »

and how to encrypt the json again, it give me error i can't put json directly to the code ?

the problem been solved :D :

before you put json directly to c# code you have to escape json with this tool ; https://www.browserling.com/tools/json-escape


this my code :

Code: Select all

using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;


public class Program
{
   private static string key = "Fotoable";
  public static string DesEncrypt(string encryptString)
   {
      string result;
      try
      {
         byte[] bytes = Encoding.UTF8.GetBytes(key.Substring(0, 8));
         byte[] rgbIV = bytes;
         byte[] bytes2 = Encoding.UTF8.GetBytes(encryptString);
         DESCryptoServiceProvider descryptoServiceProvider = new DESCryptoServiceProvider();
         MemoryStream memoryStream = new MemoryStream();
         CryptoStream cryptoStream = new CryptoStream(memoryStream, descryptoServiceProvider.CreateEncryptor(bytes, rgbIV), CryptoStreamMode.Write);
         cryptoStream.Write(bytes2, 0, bytes2.Length);
         cryptoStream.FlushFinalBlock();
         string text = Convert.ToBase64String(memoryStream.ToArray());
         cryptoStream.Close();
         memoryStream.Close();
         result = text;
      }
      catch (Exception exception)
      {
         result = encryptString;
      }
      return result;
   }

   public static void Main()
   {
      Console.WriteLine(DesEncrypt("{\"data\": [{\"answer\": \"ten\", \"isHorizontal\": 1, \"firstLetterRow\": 2, \"firstLetterCol\": 1}, {\"answer\": \"net\", \"isHorizontal\": 0, \"firstLetterRow\": 1, \"firstLetterCol\": 2}], \"size\": 5}"));
   }
}