make pin hash algorithm setable