handle passphrase in resource.d file