Added security sample. Throw error if encrypted key is provided without a passphrase.