Added password encryption
Added global method security
Added base repository