SHA256 in SQL

In SQL you can use the HASHBYTES function to generate the hash of an input, the output is the binary represention of the hash. If you want to get this as a unicode value then you can use the below code. This gives a result of ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad which can be Read more…

Serilog SelfLog

If you’re using Serilog for logging in an application but it doesn’t seem to be logging anything then it’s possible to use the SelfLog functionality to have it report it’s own errors to help with debugging. The easiest way is normally to have it send these messages to the console. Read more…