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#写的。
using System;
using System.IO;
using System.Collections;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;
public class App
{
[STAThread]
static void Main()
{
Serialize();
Deserialize();
}
static void Serialize()
{
// Create a hashtable of values that will eventually be serialized.
Hashtable addresses = new Hashtable();
addresses.Add("Jeff", "123 Main Street, Redmond, WA 98052");
addresses.Add("Fred", "987 Pine Road, Phila., PA 19116");
addresses.Add("Mary", "PO Box 112233, Palo Alto, CA 94301");
// To serialize the hashtable and its key/value pairs,
// you must first open a stream for writing.
// In this case, use a file stream.
FileStream fs = new FileStream("DataFile.dat", FileMode.Create);
// Construct a BinaryFormatter and use it to serialize the data to the stream.
BinaryFormatter formatter = new BinaryFormatter();
try
{
formatter.Serialize(fs, addresses);
}
catch (SerializationException e)
{
Console.WriteLine("Failed to serialize. Reason: " + e.Message);
throw;
}
finally
{
fs.Close();
}
}
static void Deserialize()
{
// Declare the hashtable reference.
Hashtable addresses = null;
// Open the file containing the data that you want to deserialize.
FileStream fs = new FileStream("DataFile.dat", FileMode.Open);
try
{
BinaryFormatter formatter = new BinaryFormatter();
// Deserialize the hashtable from the file and
// assign the reference to the local variable.
addresses = (Hashtable) formatter.Deserialize(fs);
}
catch (SerializationException e)
{
Console.WriteLine("Failed to deserialize. Reason: " + e.Message);
throw;
}
finally
{
fs.Close();
}
// To prove that the table deserialized correctly,
// display the key/value pairs.
foreach (DictionaryEntry de in addresses)
{
Console.WriteLine("{0} lives at {1}.", de.Key, de.Value);
}
}
}
复制代码
[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