All pastes #2120596 Raw Edit

Mine

public text v1 · immutable
#2120596 ·published 2012-02-22 02:27 UTC
rendered paste body
 public string GetTag(string value)
 {
    UInt32 hex = Convert.ToUInt32("0x" + value, 16);
    return ((hex & 0x000000FFU) << 24 | (hex & 0x0000FF00U) << 8 |
                   (hex & 0x00FF0000U) >> 8 | (hex & 0xFF000000U) >> 24).ToString();
 }


function GetTag($value){
        $hex = HexToInt($value);

        return (($hex & 0x000000FFU) << 24 | ($hex & 0x0000FF00U) << 8 |
                   ($hex & 0x00FF0000U) >> 8 | ($hex & 0xFF000000U) >> 24);
}