Skip to content

Instantly share code, notes, and snippets.

/*
23:29:53 "EPOCH_clientInit: Hash: s3cave12i.008da5b19 | Verify Result: true"
23:29:53 "EPOCH_onEachFrame: Hash: urw32vfzt.b500bd86c | Verify Result: true"
23:29:55 "EPOCH_masterLoop: Hash: q3rowbiqo.34f6d340e | Verify Result: true"
23:29:55 "EPOCH_client_rejectPlayer: Hash: qzt12tqbm.83339f58d | Verify Result: true"
23:29:55 "EPOCH_clientRespawn: Hash: 3rndiefvx.78c7a9ffe | Verify Result: true"
23:29:56 "EPOCH_KeyDown: Hash: rhmlztikm.8cac0bfc5 | Verify Result: true"
*/
MMC_fnc_hashString = {
private ['_str', '_seed', '_dic', '_strArr', '_seedArr', '_seedLength', '_dicLength', '_hash'];
// ARMA Hashing
MMC_fnc_hashString = {
private ['_str', '_seed', '_dic', '_seedLength', '_dicLength', '_hash'];
_str = toArray ([_this, 0, '', ['']] call BIS_fnc_param);
_seed = toArray ([_this, 1, 'seed', ['']] call BIS_fnc_param);
_dic = '0123456789abcdef';
_seedLength = count _seed;
_dicLength = count _dic;
for "_i" from 0 to (count _str) -1 do {
import socket #for sockets
import sys #for exit
import binascii
import time
import threading
def rcon_hash(msg):
hashdec = (binascii.crc32(msg) & 0xFFFFFFFF)
hashdec = "%08X" % hashdec
hx = '0x';
if(!_done) exitWith { diag_log("CUSTOM: failed to get id for : " + str(_uid)); };
//_object_para = "ParachuteMediumWest" createVehicle [0,0,0];
//_object_para setpos [_location select 0, _location select 1,(_location select 2) + 65];
_object = createVehicle [_class, [_location select 0, _location select 1, _location select 2], [], 0, "CAN_COLLIDE"];
_object setVariable ["ObjectID", _oid, true];

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).