salt key handling