Fixed #504

Created a default/ fall back password algorithm.