Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

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

Featured Replies

  • Author
  • Localization

bazickoff, posted Sun Dec 16, 2018 10:16 am (41442)


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

encrypt.rar

  • Author
  • Localization

atom0s, posted Mon Dec 17, 2018 9:05 am (41464)


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

Then enter this as the code:
Code:
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:
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.
  • Author
  • Localization

bazickoff, posted Wed Dec 19, 2018 1:31 am (41502)


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

Then enter this as the code:
Code:
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:
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 ?
  • Author
  • Localization

bazickoff, posted Wed Dec 19, 2018 5:15 am (41507)


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:
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}"));
   }
}
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.