Jump to content
micovery

Online Steam ID to BattlEye GUID Converter

Recommended Posts

Made this simple online utility to convert Steam ID to BattlEye GUID.

http://codepen.io/micovery/full/bNbLqL

ixIwxPh.png

It's entirely JavaScript based.

Here is the source if you are interested:

var uid2guid = function(uid) {
 if (!uid) {
   return;
 }

 var steamId = bigInt(uid);

 var parts = [0x42,0x45,0,0,0,0,0,0,0,0];

 for (var i = 2; i < 10; i++) {
   var res = steamId.divmod(256);
   steamId = res.quotient; 
   parts[i] = res.remainder.toJSNumber();
 }

 var wordArray = CryptoJS.lib.WordArray.create(new Uint8Array(parts));
 var hash = CryptoJS.MD5(wordArray);
 return hash.toString();
};

It uses's crypto-js and BigInteger.js

Share this post


Link to post
Share on other sites

the past 3 days ive been having a problem with it its not loading the GUID its a bit of a problem i need it to check bans

Share this post


Link to post
Share on other sites

To get an an ID both ways, from PID to GUID / GUID to PID you can check out this page: http://arma-banlist.de/check.aspx

 

You get ban information too, but the importsant point is that you get all ids you need if you just enter any format.

 

 

Regards Arkensor

Share this post


Link to post
Share on other sites

I use that MySQL-function on my RP-project's MySQL-server to get BEGUID from SteamID on the fly.

DELIMITER $$

--
-- Create function `beguid`
--
CREATE DEFINER = 'root'@'localhost'
FUNCTION beguid(_playerid bigint UNSIGNED)
  RETURNS varchar(32) CHARSET latin1
  DETERMINISTIC
BEGIN

  DECLARE _temp text CHARSET ascii;
  DECLARE _i int;

  SET _temp = "";
  SET _i = 0;

  WHILE _i < 8 DO
    SET _temp = CONCAT(_temp, CHAR(_playerid & 0xFF));
    SET _playerid = _playerid >> 8;
    SET _i = _i + 1;
  END WHILE;

  RETURN MD5(CONCAT("BE", _temp));

END
$$

Example:

mysql> select beguid(76532298015716211);
+----------------------------------+
| beguid(76532298015716211)        |
+----------------------------------+
| f276e058bbaaff85d23070c9bd43e2aa |
+----------------------------------+

 

Share this post


Link to post
Share on other sites

Python3

 

from hashlib import md5

def steam_id_to_guid(steam_id):
    temp = ['BE']
    for _ in range(8):
        temp.append(chr(steam_id & 0xFF))
        steam_id = steam_id >> 8
        
    return md5(''.join(temp).encode("latin1")).hexdigest()

print(steam_id_to_guid(yourUID))

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×