passwordAlgorithm, read file for user and some diaryDB operations