I will go ahead and say that the T2 script engine absolutely sucks for any sort of cryptography. I couldn't get consistent behavior for an MD5 function due to the way the script engine handles 32-bit integers.
I came up with an RC4 based hash algorithm instead that worked with 8-bit chunks and outputs a 160-bit hash, calculated with a 2048-bit S-block. Considering RC4 makes for a quite effective stream cipher and cryptographically secure RNG, it seems to be suitable for a strong hash algorithm.
Now it is just a matter of finishing the big-integer class for the wizardry behind the curtain.
[poss. from C. S. Lewis's Narnia books] An awesomely arcane technique central to a program or system, esp. one neither generally published nor available to hackers at large (compare black art); one that could only have been composed by a true wizard. Compiler optimization techniques and many aspects of OS design used to be deep magic; many techniques in cryptography, signal processing, graphics, and AI still are. Compare heavy wizardry. Esp.: found in comments of the form Deep magic begins here.... Compare voodoo programming.
Is there a command to return how many lines are entered in a file?
How do you mean? One way is to setup a fileobject and simply count the lines
%bleh = new scriptobject();
%bleh.OpenForRead("PATH/TO/FILE.Ext");
%i = 0; // not necessary but i do it anyway
while(!%bleh.isEOF)
{
%i++;
}
echo("Total Lines = " @ %i);
There might be a simpler way of doing it, but i haven't heard of it.
%bleh = new FileObject();
%bleh.openForRead("path/to/file");
for (%i=0;!%bleh.isEOF();%i++){}
echo("Total lines: " @ %i);
EOF --> End of File.
I have 4 more pieces of functionality to write for the big integer library... Multiplication (Karatsuba algorithm, I think), division (I'm not sure how I will do this efficiently yet), logical left shift (pretty easy), logical right shift (pretty easy). Hopefully it will be fast enough, and I won't need to go through a round of special optimizations.
We can't forget to welcome "Shane" to the forums, can we? He posted a post with the text, "hia" and we completely ignored him, since we were engaged in discussion. Sorry about that!
[Edit]
He might not be the "Shane{1}" we all love/hate.
This happens when you have no internet connectivity, the system automaticly UE's when it tries to check for TC Servers. Also, it does the same for hosting dedicated LAN servers, the instant it tries to add it to the list you get a UE.
I've noticed that sudden loss of Internet connectivity can sometimes result in UE when attempting to send data to a socket that hasn't finished DNS resolution. That could be the cause of Phantom's UE.
Comments
I came up with an RC4 based hash algorithm instead that worked with 8-bit chunks and outputs a 160-bit hash, calculated with a 2048-bit S-block. Considering RC4 makes for a quite effective stream cipher and cryptographically secure RNG, it seems to be suitable for a strong hash algorithm.
Now it is just a matter of finishing the big-integer class for the wizardry behind the curtain.
deep magic: n.
[poss. from C. S. Lewis's Narnia books] An awesomely arcane technique central to a program or system, esp. one neither generally published nor available to hackers at large (compare black art); one that could only have been composed by a true wizard. Compiler optimization techniques and many aspects of OS design used to be deep magic; many techniques in cryptography, signal processing, graphics, and AI still are. Compare heavy wizardry. Esp.: found in comments of the form Deep magic begins here.... Compare voodoo programming.
Is there a command to return how many lines are entered in a file?
How do you mean? One way is to setup a fileobject and simply count the lines
There might be a simpler way of doing it, but i haven't heard of it.
What does 'EOF' stand for, exactly?
EOF --> End of File.
I have 4 more pieces of functionality to write for the big integer library... Multiplication (Karatsuba algorithm, I think), division (I'm not sure how I will do this efficiently yet), logical left shift (pretty easy), logical right shift (pretty easy). Hopefully it will be fast enough, and I won't need to go through a round of special optimizations.
[Edit]
He might not be the "Shane{1}" we all love/hate.
yes. it does. period.
I always overlook the 'for' method. Silly me.
Uhh...
This happens when you have no internet connectivity, the system automaticly UE's when it tries to check for TC Servers. Also, it does the same for hosting dedicated LAN servers, the instant it tries to add it to the list you get a UE.
But, id be happy to help, if you'd elaborate.