Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
A tool to convert numbers into various other formats and different sized integers
A small tool I often used to convert a number into various other formats
$ pip install epicnumbers
$ epicnumbers <number>
Convert -100 into signed, unsigned, hex, printable and binary in different sized integers
$ en -100
type signed unsigned hex printable binary
------ -------- -------------------- ------------------- -------------------------------- -----------------------------------------------------------------------
8 bit -100 156 0x9c \x9c 10011100
16 bit -100 65436 0xff9c \x9c\xff 11111111 10011100
32 bit -100 4294967196 0xffffff9c \x9c\xff\xff\xff 11111111 11111111 11111111 10011100
64 bit -100 18446744073709551516 0xffffffffffffff9cL \x9c\xff\xff\xff\xff\xff\xff\xff 11111111 11111111 11111111 11111111 11111111 11111111 11111111 10011100
Convert 0x100 into signed, unsigned, hex, printable and binary in different sized integers
$ en 100h
type signed unsigned hex printable binary
------ -------- ---------- ----- -------------------------------- ----------
16 bit 256 256 0x100 \x00\x01 1 00000000
32 bit 256 256 0x100 \x00\x01\x00\x00 1 00000000
64 bit 256 256 0x100 \x00\x01\x00\x00\x00\x00\x00\x00 1 00000000
Convert 100b (binary) into signed, unsigned, hex, printable and binary in different sized integers
$ en 100b
type signed unsigned hex printable binary
------ -------- ---------- ----- -------------------------------- --------
8 bit 4 4 0x4 \x04 100
16 bit 4 4 0x4 \x04\x00 100
32 bit 4 4 0x4 \x04\x00\x00\x00 100
64 bit 4 4 0x4 \x04\x00\x00\x00\x00\x00\x00\x00 100
$ poetry install
$ poetry shell
$ poetry run pytest
$ poetry run en 100h
FAQs
A tool to convert numbers into various other formats and different sized integers
We found that epicnumbers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.