apply encryption on tomcat.