Encrypt Passwords With Weblogic Server
| Posted by watashii | Filed under Database, WebIn a Weblogic Server environment, sometimes passwords must be unavoidably stored in text files, for example database connection details within JDBC configuration files. When running Weblogic in production mode, only encrypted password is accepted to ensure that the password is never exposed as clear text. To generate the encrypted password, the weblogic.security.Encrypt utility can be used, which generates a hashed password with a “{3DES}” prepended.
In Unix environment:
$ cd /opt/bea/user_projects/domains/mydomain/bin
$ . setDomainEnv.sh
$ java weblogic.security.Encrypt mycleartextpasswordhere
{3DES}xLLwrOm7asb4imZOYYwxz5TcBqDBEe6S
In Windows environment:
C:\>cd c:\bea\domains\mydomain\bin
C:\bea\domains\mydomain\bin>setDomainEnv.cmd
C:\bea\domains\mydomain\bin>java weblogic.security.Encrypt mycleartextpasswordhere
{3DES}lieJgIkTqg1xSBBoy3YxnHbPuz+tMxhY
Note that running the same command on different environment (or different Weblogic server installation) will produce a different password.
Related Posts:
- Start & Stop Weblogic Without Username & Password
- Weblogic Portal Authorization – Get and Check User’s Roles
- Reading Portlet Preferences in Weblogic Portal
- Using JSF 1.2 on Oracle Workshop for Weblogic (Portal 10.3)
- Weblogic Portal – Create Streaming Desktop Page Definition Error
Tags: encrypt, oracle, password, security, weblogic
One Response to “Encrypt Passwords With Weblogic Server”
-
blog.watashii » Blog Archive » Start & Stop Weblogic Without Username & Password Says:
June 15th, 2010 at 7:40 am[...] to an encrypted value upon server startup. The same encrypted value can be generated using the weblogic.security.Encrypt [...]
