Skip to content

Instantly share code, notes, and snippets.

@lennyRBLX
Created May 10, 2019 01:47
Show Gist options
  • Save lennyRBLX/1fc741bbd93cc7f6a826349006d8d8ee to your computer and use it in GitHub Desktop.
Save lennyRBLX/1fc741bbd93cc7f6a826349006d8d8ee to your computer and use it in GitHub Desktop.
Hash Functions for Whitelisting; Old functions used in a Whitelist, Created by me
--[[ lua
function md5hashify(tohash)
local api = "https://helloacm.com/api/md5/?s="
local hash1 = game:HttpGet(api .. tohash, true):sub(2, 33)
hash1 = "additionsarecool|o|" .. hash1:sub(#hash1 - 10, #hash1)
local hash2 = game:HttpGet(api .. hash1, true):sub(20, 33)
local hash3 = game:HttpGet(api .. hash2, true):sub(2, 33)
return hash3
end
--]]
--[[ php
function md5hashify($tohash) {
//($curminute * 256) / 128
$hash1 = "additionsarecool|o|" . substr(hash('md5', $tohash), -11);
$finalhash = hash('md5', substr(hash('md5', $hash1), -14));
return $finalhash;
}
--]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment