seperated the password encryption into its own method for defining strength