Updated salting routine and moved unused methods into deprecated-functions.js