Review the built-in services documentation for the pub.security folder.
If memory serves, there was a sample package in the past that showed how to run a command shell to use gnupg. That may be of interest, even if an outdated approach.
#webMethods#Integration-Server-and-ESB