Skip to content

Instantly share code, notes, and snippets.

@AgentRev
Created October 16, 2014 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AgentRev/815f48b89818182f2199 to your computer and use it in GitHub Desktop.
Save AgentRev/815f48b89818182f2199 to your computer and use it in GitHub Desktop.
SteamID64 to BattlEye GUID via PowerShell
Function Get-BattlEyeGUID ([string]$steamID64)
{
Try
{
$beBytes = [System.Text.Encoding]::ASCII.GetBytes("BE")
$idBytes = [System.BitConverter]::GetBytes([Int64]::Parse($steamID64))
$sb = New-Object System.Text.StringBuilder
$md5 = New-Object System.Security.Cryptography.MD5CryptoServiceProvider
$md5.ComputeHash($beBytes + $idBytes) | %{ [void] $sb.Append($_.ToString("x2")) }
Return $sb.ToString()
}
Catch
{
Return ""
}
}
@wiking-at
Copy link

just found that you wrote the code i was missing for beguid creation in mysql - nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment