Modified get/set passphrase functions to avoid permission issue