I am implementing a Request-Reply pattern using JMS (ActiveMQ) as a logon service. It all works well. I send the username and password in the message and then check the encrypted version of the password with the encryption in the database. I use JASPYT for this part.
My worry is sending the unencrypted password over JMS. Would I face any security compromises with such practise? Unfortunately, JASPYT library doesn't allow me to compare a digest with another digest, only an original password with a saved digest; which is why I am sending the password over the wire.
Is it possible for the message to be intercepted and for username / passwords to be compromised? Is there a safer way to do this assuming that JMS is my implementation or R-R?
Thanks for your help.