implemented password encryption example