Authentication failure java.lang.IllegalArgumentException: Empty key

Nirmal Kumar Raveendranath
Added 9 months ago

I am using Mongodb and tried to register a user with name and password, but it stores the password in plaintext in the database

How to enable SCRAM SHA1 in tigase 7.1.3 for authentication of users

java.lang.IllegalArgumentException: Empty key
        at javax.crypto.spec.SecretKeySpec.<init>(
        at tigase.auth.mechanisms.AbstractSaslSCRAM.key(
        at tigase.auth.mechanisms.AbstractSaslSCRAM.processClientFirstMessage(
        at tigase.auth.mechanisms.AbstractSaslSCRAM.evaluateResponse(
        at tigase.xmpp.impl.SaslAuth.process(
        at tigase.server.xmppsession.SessionManager$ProcessorWorkerThread.process(

Replies (3)

Added by Nirmal Kumar Raveendranath 9 months ago

for now I have disabled encryption with this


How to use encryption for password in mongodb

Added by Nirmal Kumar Raveendranath 9 months ago

can anyone pls help me

Added by Wojciech Kapcia TigaseTeam 9 months ago

Generic solution was implemented in version 8.0.0

In previous version it was possible to encrypt passwords in the database, but it would force users to use SASL PLAIN and was only supported for relational databases.