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 20, 2024 at 11:06:07 AM
Tag arguments
[]
Code
class ip2hex {
encode(input) {
return input
.split(".")
.map((oct) => "0x" + parseInt(oct).toString(16))
.join(".");
}
}