Removed unused constants for salt/password length.
Unit tests for password encryption
Password encryption randomness decoupled for better unit testing