encrypt private keys and token codes if any