string to byte type
reset DigestMethod before generating new hash