La segunda descarga que puso Hackware la hice yo hace mucho tiempo y no funciona correctamente a veces... me disculpo por eso.
Ac? te dejo un script que te va a servir:
El primer argumento es el nombre del archivo a encriptar y el segundo un "password". Para decriptar el archivo s?lo ten?s que usar la funci?n otra vez con el mismo password. Dale cr?dito al creador, Kevin Haroldsen.
Tambi?n en el script se explica c?mo funciona exactamente la encripci?n.
Ac? te dejo un script que te va a servir:
Código [Seleccionar]
/*
**********************************************
************File Encryption System************
**********Written by: Kevin Haroldsen*********
**********************************************
Use this to encrypt/decrypt a file using XOR encryption.
It can be used to prevent editing of save files, or for other things.
Arguments:
The First Argument is the file you want to encrypt. Use a full path.
Make sure it is a string.
The Second Argument is the encryption key. It must be a string.
It can be as long as you want. Longer is more secure.
How it works:
The script generates a key based on the key you provide and the game id.
It then goes through the file and encrypts each byte using xor encryption,
rotating through the key. By rotating through the key, two identical letters next
to each other will not be look the same when encrypted. Sometimes the file is encrypted
enough that it is interpreted as Japanese in notepad- seeing it as Unicode.
How XOR encryption works:
XOR is a logic gate. The are 8 logic gates-AND,OR,XOR,YES,NAND,NOR,NXOR,and NOT.
When you enter values into a logic gate, it returns a value. All return either 0 or 1.
0 or 1 can mean No or Yes, False or True, or some others.
XOR generally allows you to input two values. If those values are the same, it will output 0.
Otherwise it will output 1.
Here is a truth table for XOR:
____________________
|Input1|Input2|Output|
|______|______|______|
| 0 | 0 | 0 |
|______|______|______|
| 1 | 0 | 1 |
|______|______|______|
| 0 | 1 | 1 |
|______|______|______|
| 1 | 1 | 0 |
|______|______|______|
This is simple boolean XOR.
Binary XOR uses boolean XOR to edit its values. With binary xor, it's almost like it's an operand like
addition or multiplication.
First of all, binary is a base 2 number system only using 0 and 1. It is what computers use.
Counting from 0 from 5 is
0
1
10
11
100
101
This is the binary system. With computers, a bit is a 0 or a 1. a byte is a group of 8 bits.
Binary XOR edits a whole byte of data.
The number 106 is 01101010
The number 203 is 11001011
So... 106 xor 203 is:
0 1 1 0 1 0 1 0
| | | | | | | |
\|/ \|/ \|/ \|/ \|/ \|/ \|/ \|/
xor 1 1 0 0 1 0 1 1
-------------------------------
1 0 1 0 0 0 0 1
10100001 is 161.
So, 106 xor 203 is 161.
Each letter or number in a text file is a byte. For example, the letter Q is 1010001.
So if you xor 1010001 (Q) with 1001011 (K), you get 11010, which is a right arrow mark.
Now if you xor 11010 with 1001011 (K), you get 1010001, which is Q. So, you can encrypt and decrypt with a key.
NOTE:
Files encrypted with this will only be correctly decrypted with the same game- or at least with the
same game id.
Written January 6th 2010
*/
//define all variables
var file,read,keypos,key;
if !file_exists(argument0) then return (-1);
//define all variables.
keypos=0;
key=argument1
read=0
file=0
keypos=0;//make sure you are at the beginning of the key.
file=file_bin_open(argument0,2);//open the file, using basic binary functions
file_bin_seek(file,0);//make sure you are at the start of the file
//This is where you actually encrypt the file. Notice the actual encryption is only a few lines long.
repeat(file_bin_size(file))
{
read=file_bin_read_byte(file);//read the chosen byte. Doing so will also advance to the next byte.
file_bin_seek(file,file_bin_position(file)-1);//go to the byte before, returning to the byte that you just read.
file_bin_write_byte(file,read ^ ord(string_char_at(key,keypos)));//write the encrypted byte where a byte was previously.It will advance to the next byte
keypos+=1;//go to the next character in the key to encrypt with.
if keypos>string_length(key) then keypos=1;
};
file_bin_close(file);//close the binary file when finished.
return (1);//returns 1 to confirm it worked.
El primer argumento es el nombre del archivo a encriptar y el segundo un "password". Para decriptar el archivo s?lo ten?s que usar la funci?n otra vez con el mismo password. Dale cr?dito al creador, Kevin Haroldsen.
Tambi?n en el script se explica c?mo funciona exactamente la encripci?n.