Added functionality to the configure method to
actually parse the NSCA configuration file and extract
both the encryption_method and password properties.
Added an encrypt_buffer method which supports the
basic XOR "encryption" supported by send_nsca. This
also provides a hook to add the remaining encryption
methods supported by send_nsca (via libmcrypt.)
Added getter/setter methods for setting the encryption
method and password properties directly (instead of
parsing the NSCA configuration file for them.)
Patch is attached.
Does anyone know if libmcrypt has been "wrappered" or
re-written for Java? I was considering adding
libmcrypt support via a JNI wrapper of libmcrypt, but
don't know if anyone wants that badly enough to spend
the time on it.