add support to store HashAlgorithm
add mocha based tests
add test for the option string/read write
add support to encode hash algorithm in the options string