Using weblogic environment to generate encrypt password

There has a simple way to using weblogic environment to generate encrypt password...

1. Set environment...
./setDomainEnv.sh

2. Generate password...
java weblogic.security.Encrypt [YOUR PASSWORD]