added optional cipher to dhutils