how to tell whether a ssh key has a password

+ grep ENCRYPTED filename +

for instance:

* grep ENCRYPTED ~/.ssh/id_rsa *

should print something like:

  • Proc-Type: 4,ENCRYPTED