added support for salt, where the algorithm allows/needs it