Created a method so encode strings to SHA256.