Hm... wonder if there's a library that could do something similar.
It's an interesting idea encrypting your error that I haven't seen in many places.
It's an interesting idea encrypting your error that I haven't seen in many places.
If it's symmetric-encrypted, then it's unforgeable, and it's safe to include private information, like IP address or recent video-viewing history, just in case someone posts a screenshot of it on HN.
Generally i just do something like an sha of the error and time, and spit out like the first 10 bytes or something (as well as put that in the log line), i'm just looking for something i can grep for.
It would be useful when things break so hard you don't even get a log.