This extension will let you run a system command(create process), encryption , decryption and get a random string.
Support css,dods, tf2
Natives
PHP Code:
native bool:RunSystemCommand(const String:command[],flags=PRI_NORMAL|CREATE_NEW_CONSOLE,SW_flag=SW_SHOW);
native bool:Rc4Encryption(const String:plaintext[], const String:pwd[], String:ciphertext[], maxlength,bool:IsLowerCase=true);
native bool:Rc4Dencryption(const String:ciphertext[], const String:pwd[], String:plaintext[], maxlength);
native Md5Encryption(const String:plaintext[], String:output[], maxlength, bool:IsLowerCase=true, bool:UseASM=false);
native bool:GetRandomString(String:output[], maxlength, length = 8, bool:IncludeNumber=true, bool:IncludeLowerCase=true, bool:IncludeUperCase=true, bool:IncludeSymbol=true);
WARNING
RunSystemCommand:
If you install this on your server, you do so at your own risk. All legal responsibility is yours if something bad happens.
Never let this function interact with player-created strings. This opens too many avenues for abuse.
Notes
RunSystemCommand, command will block if include illegal value.
Md5Encryption, use ASM can speed up ~20% encryption.
Changelog
Version 1.0.1
support windows & linux
RunSystemCommand only work on windows
Version 1.0.0
initial release