Common `crypto` snippets (generate random bytes, salt, hash password, etc)