Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lifthrasiir
on Aug 13, 2024
|
parent
|
context
|
favorite
| on:
0xCAFEBABE & 0xFEEDFACE (2003)
My preferred way to make a "magic" constant has been using base64. For example, 0x31a82270 maps to base64 `MagicA==`. This approach is most useful when the magic constant itself shouldn't be obviously ASCII but still should be meaningful enough.
kragen
on Aug 13, 2024
[–]
too bad pointer alignment isn't visible in a base64 dump of memory
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: