added SHA256 and SHA512 encoding functions to utils