ip2hex
Converts an IP address into an hex representation of it.
Created by: hackvertor
Installed 1 times
Category: IP
Created on: Tuesday, October 22, 2024 at 11:50:50 AM
Updated on: Wednesday, November 6, 2024 at 3:20:39 PM
Tag arguments
[]
Code
class ip2hex {
encode(input) {
return input
.split(".")
.map((oct) => "0x" + parseInt(oct).toString(16))
.join(".");
}
}