def METHOD_NAME(userName, password):
    try:
        ProcessUtilities.decideDistro()
        if ProcessUtilities.ubuntu22Check == 1:
            from crypt import crypt, METHOD_SHA512
            FTPPass = crypt(password, METHOD_SHA512)
        else:
            hash = hashlib.md5()
            hash.update(password.encode('utf-8'))
            FTPPass = hash.hexdigest()
        ftp = Users.objects.get(user=userName)
        ftp.password = FTPPass
        ftp.save()
        return 1, None
    except BaseException as msg:
        return 0,str(msg)