I guess you mean to encrypt the wallet?
You would have to 'hide' the decryption key (either the same as the encryption key [symmetric encryption] or called private key [asymmetric encryption]).
Note that this is effictively not an option since the wallet has to run all the time on the server (depending on the application).
If automated transactions are made, the wallet has to be accessable to the node/software.
Sorry yes i meant encrypt there.