implementation of given Password encryption and stores to info file