Method: HardsploitAPI.reverseBit

Defined in:
lib/HardsploitAPI/Core/HardsploitAPI.rb

.reverseBit(byte) ⇒ Object



152
153
154
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 152

def self.reverseBit(byte)
  return byte.to_s(2).rjust(8, "0").reverse.to_i(2)
end