Project1

标题: 加密问题 [打印本页]

作者: 江南小帅瓜    时间: 2008-5-15 02:05
标题: 加密问题
那些*.pak为后缀名的如何加密啊?直接把RGSS10(*)J.dll和Gmae.ini加密到*.pak里面去了,请高手指教。
周杰伦历险记 花之恋 的加密档就是后缀名为pak的。 [LINE]1,#dddddd[/LINE]版务信息:版主帮忙结贴~
作者: cZooCz    时间: 2008-5-15 02:06
pak这是虾米后缀{/pz}
作者: 江南小帅瓜    时间: 2008-5-15 02:13
除了音频,其他数据都加密到里面去了。。。。。。
作者: 江南小帅瓜    时间: 2008-5-16 01:37
一直求助当中。。。
作者: 36763183    时间: 2008-5-16 01:42
呵呵,我知道某强人的加密为DAT的~~,PAK那个的脚本没有公布吧。
作者: 江南小帅瓜    时间: 2008-5-16 03:36
那请问下DAT的又是如何加密的,请指教。。。
作者: 36763183    时间: 2008-5-16 05:12
http://rpg.blue/web/htm/news647.htm
作者: 36763183    时间: 2008-5-16 05:15
对了有个问题,有些自定义脚本如鼠标脚本的图片无法加密读取,原因不清楚。
作者: 江南小帅瓜    时间: 2008-5-16 05:34
你发的网址我看了,但是不成功指教一下。
作者: 江南小帅瓜    时间: 2008-5-17 19:21
无人问津啊!!!
作者: Eclair    时间: 2008-5-17 19:30
提示: 作者被禁止或删除 内容自动屏蔽
作者: 江南小帅瓜    时间: 2008-5-17 23:55
我不小心试了一下,把周杰伦历险记花之恋里的加密档date.pak改成date.exe居然可以直接运行游戏,仍请高手来指教。
作者: 八云紫    时间: 2008-5-17 23:56
话说RM好像只认识文件名,而不理睬扩展名。
作者: 江南小帅瓜    时间: 2008-5-18 00:04
那修改Game.rgssad的扩展名,游戏如何正常运行。。。
作者: 八云紫    时间: 2008-5-18 00:09
这个倒是不清楚。刚才试了一下,不能修改Game.rgssad的扩展名哦
作者: 江南小帅瓜    时间: 2008-5-18 00:38
那你知道dat的那个加密方法如何用吗?
作者: 八云紫    时间: 2008-5-18 00:53
可能就是 二进制寻列化 吧。

这个是C#写的。


  1. using System;
  2. using System.IO;
  3. using System.Collections;
  4. using System.Runtime.Serialization.Formatters.Binary;
  5. using System.Runtime.Serialization;

  6. public class App
  7. {
  8.     [STAThread]
  9.     static void Main()
  10.     {
  11.         Serialize();
  12.         Deserialize();
  13.     }

  14.     static void Serialize()
  15.     {
  16.         // Create a hashtable of values that will eventually be serialized.
  17.         Hashtable addresses = new Hashtable();
  18.         addresses.Add("Jeff", "123 Main Street, Redmond, WA 98052");
  19.         addresses.Add("Fred", "987 Pine Road, Phila., PA 19116");
  20.         addresses.Add("Mary", "PO Box 112233, Palo Alto, CA 94301");

  21.         // To serialize the hashtable and its key/value pairs,  
  22.         // you must first open a stream for writing.
  23.         // In this case, use a file stream.
  24.         FileStream fs = new FileStream("DataFile.dat", FileMode.Create);

  25.         // Construct a BinaryFormatter and use it to serialize the data to the stream.
  26.         BinaryFormatter formatter = new BinaryFormatter();
  27.         try
  28.         {
  29.             formatter.Serialize(fs, addresses);
  30.         }
  31.         catch (SerializationException e)
  32.         {
  33.             Console.WriteLine("Failed to serialize. Reason: " + e.Message);
  34.             throw;
  35.         }
  36.         finally
  37.         {
  38.             fs.Close();
  39.         }
  40.     }

  41.    
  42.     static void Deserialize()
  43.     {
  44.         // Declare the hashtable reference.
  45.         Hashtable addresses  = null;

  46.         // Open the file containing the data that you want to deserialize.
  47.         FileStream fs = new FileStream("DataFile.dat", FileMode.Open);
  48.         try
  49.         {
  50.             BinaryFormatter formatter = new BinaryFormatter();

  51.             // Deserialize the hashtable from the file and
  52.             // assign the reference to the local variable.
  53.             addresses = (Hashtable) formatter.Deserialize(fs);
  54.         }
  55.         catch (SerializationException e)
  56.         {
  57.             Console.WriteLine("Failed to deserialize. Reason: " + e.Message);
  58.             throw;
  59.         }
  60.         finally
  61.         {
  62.             fs.Close();
  63.         }

  64.         // To prove that the table deserialized correctly,
  65.         // display the key/value pairs.
  66.         foreach (DictionaryEntry de in addresses)
  67.         {
  68.             Console.WriteLine("{0} lives at {1}.", de.Key, de.Value);
  69.         }
  70.     }
  71. }



复制代码
[LINE]1,#dddddd[/LINE]系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~
作者: 江南小帅瓜    时间: 2008-5-18 01:01
你写的东西的作用是???
作者: 八云紫    时间: 2008-5-18 01:07
加密数据成 .dat 文件,以及读取 .dat 文件。

一个范例而已。
作者: 江南小帅瓜    时间: 2008-5-18 01:09
谢谢,我试试!
作者: 江南小帅瓜    时间: 2008-5-18 01:14
用不了,具体如何用的???
作者: 八云紫    时间: 2008-5-18 01:23
这个不是脚本啊 ,是 C#
作者: 江南小帅瓜    时间: 2008-5-18 01:24
那要如何用啊?
作者: 八云紫    时间: 2008-5-18 01:29
不知道,呵呵。从专门讨论C#的论坛弄来的,用法不知道是不是类的实例化。
作者: 江南小帅瓜    时间: 2008-5-18 01:32
那算了吧!!!




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1