System Password Encryption/Decryption

8.1 System Password Encryption/Decryption

The Wireless Edition database password for the repository is stored in clear text in the System.properties file by default. The password can be encrypted by running the following tool to modify the db.connect.string:

encryptPassword.sh WE_HOME/server/classes/oracle/panama/core/admin

Then set the following property in the System.properties file:

passwordEncrypted=true

8.1.1 Extensibility

The SystemPasswordEncryptionHook.class identifies the encryption algorithm. To provide extensibility, the class can be used to invoke a user’s algorithm in place of the default algorithm.

The default setting is:

locator.SystemPasswordEncryptionHook.class=

oracle.panama.rt.common.SystemPasswordEncryption

To use an alternate encryption algorithm, implement the following interface:

public interface SystemPasswordEncryptionHook { /** Encrypts the text

*@param text the text to be encrypted

*@return the encrypted text

*/

public String encrypt(String text);

/** Decrypts the encrypted text

*@param encryptedText the encrypted text

*@return the decrypted text

*/

public String decrypt(String encryptedText);

}

This allows you to replace the default algorithm, for example:

locator.SystemPasswordEncryptionHook.class=

oracle.panama.MyEncryption

8-2Oracle9i Application Server Wireless Edition Configuration Guide

Page 94
Image 94
Oracle Audio Technologies 9i manual System Password Encryption/Decryption, Extensibility