Restrict visibility of fields

Is it possible to make a field of a public table entry private if the user making the query is not the owner of the entry?

For example, I wrote profile table { username, password } and I want everyone to be able to fetch { username } (without password) except for the owner himself that can retrieve { username, password }.

Is it possible ? If yes, how ?
Thanks for helping
Was this page helpful?