support custom digest for key
Merge branch 'kalloc-master-kd'
DRY the key handling in baseCommand
Updated changelog