How to add function to custom fields when page/post has a password?

How to add function to custom fields when page/post has a password?

File not found.