Хабр Курсы для всех
РЕКЛАМА
Большая витрина: от крупнейших школ до частных авторов. Сравнивайте по цене, длительности, формату и выбирайте самый подходящий курс!
When Tomcat needs to connect to a database, it needs the original password. While the password could be encoded, there still needs to be a mechanism to decode it. And since the source to Tomcat is freely available, the attacker would know the decoding method. So at best, the password is obscured — but not really protected. Please see the user and dev list archives for flame wars about this topic.
That said, any configuration file that does contain a password needs to be appropriately secured. That means limiting access to the file so that it could be read only by the user that Tomcat process runs as and root (or the administrator on Windows).
WebLogic шифрует AES-ом, но все нужное для расшифровки хранит локально.
Есть скрипт на Jython-е, позволяющий расшифровать.
Справедливости ради, надо сказать, что можно не шифровать пароль, а вводить при старте с консоли.
Небезопасное хранение паролей в IBM WebSphere