On Fri, 17 Apr 2020 at 18:54, K. Kamhamea <[email protected]> wrote:

> I was just about testing other encryption methods as described
> https://openmeetings.apache.org/CustomCryptMechanism.html
>

I doubt anyone ever try this :)


>
> Here I run into the following undocumented problems
> 1. Where to copy the MD5Implementation.java
> <https://github.com/apache/openmeetings/blob/256e5cd11e5af8f422688dfc1d01ac66b370d7a0/openmeetings-util/src/main/java/org/apache/openmeetings/util/crypt/MD5Implementation.java>
> file into my file system
>

This is basic JAVA question :)
Java programs need to be compiled
i.e. After you have created class (which MUST implement interface) you need
to
1) compile this class
2) Pack into JAR file
3) Put jar to webapps/openmeetings/WEB-INF/lib


> 2. How to set the CLASSPATH so that it can be found anywhere in my
> filesystem
>

jars from webapps/openmeetings/WEB-INF/lib are being loaded automatically


> 3. What is actually the text string to be added into the configuration
> variable " crypt.class.name "
>

In JAVA classes are usually being created in packages (to resolve possible
name clashes)
so You need to write something like:

package com.googlemail.kamhamea;

public class MySecureCryptProvider implements ICrypt {
   ........your secure algorithm here ..........
}

In config value you should write:
"com.googlemail.kamhamea.MySecureCryptProvider"



> Alternatively I tried this class
>
> http://openmeetings.apache.org/openmeetings-util/apidocs/org/apache/openmeetings/util/crypt/MD5.html
>
> But changing the configuration variable to "
> org.apache.openmeetings.util.crypt.MD5 " creates but an error.
>

https://github.com/apache/openmeetings/blob/5.0.0-M3/openmeetings-util/src/main/java/org/apache/openmeetings/util/crypt/MD5.java
Can't be used due to it doesn't implements ICrypt



>
> Best K.
>


-- 
Best regards,
Maxim

Reply via email to