Add SHA256 and SHA512 to the encode/decode tool

Added new SHA256 and SHA512 encoding to the encode/decode tool