Support hash algorithm

According to the document, it support hash options.