Added some implementation and tests for secure passwords