You can use custom Crypt-Types, but you should decide during installation which Type of encryption you want to use. By default two type are available:
You can edit the config-key during Installation or later in the Administration Panel. But if you change it using the Administration-Panel previous passwords might be not working anymore as they are encrypted with another algorithm.
To add your own crypt style you need to write a class which
implements the interface: org.apache.openmeetings.util.crypt.ICryptString
Example of an Implementation:
package org.apache.openmeetings.util.crypt; import java.security.NoSuchAlgorithmException; public class MD5Implementation implements ICryptString { @Override public String createPassPhrase(String userGivenPass) { String passPhrase = null; try { passPhrase = MD5.do_checksum(userGivenPass); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } return passPhrase; } @Override public Boolean verifyPassword(String passGiven, String passwdFromDb) { return (passwdFromDb.equals(createPassPhrase(passGiven))); } }
To add your own Encryption-Class you need to add your class to the OpenMeetings-Webapp (make it available to the webapp-classpath) and use your custom-class-name instead of org.apache.openmeetings.util.crypt.MD5Implementation during the Installation or at runtime by editing the config-key crypt_ClassName