code: def _crypt_password(self, password):
          
  
          def salt():
              """ Generates some salt """
              symbols = ascii_letters + digits
              return choice(symbols) + choice(symbols)
  
          return crypt(password, salt())
docs: Crypts password