I don’t know much about MAC’s, but the time/date should have changed if it is related to avast scanning I would say.
As it is just a text file as you say, my guess here it is some sort of security from the MAC that is asking for the password.
I say delete it.