 <p>That's a very good question which actually made me realise that we don't have it documented. We'll fix it.</p> <p>As for now the expected format looks like this (you can use MongooseIM's debug shell to generate it).</p> <pre><code>scram:serialize(scram:password_to_scram(&lt;&lt;"ala_ma_kota"&gt;&gt;, 4096)). &lt;&lt;"==SCRAM==,xB2++RvZklv0rV5I1iuCpoxLqL0=,sKXBkOFrtyGxKqYo/dlzeKfYszU=,oplvMJ5VDxQ7rJZuIj0ZfA==,4096"&gt;&gt; </code></pre> <p>In other words, MongooseIM expects the format to be:</p> <pre><code>==SCRAM==,StoredKey,ServerKey,Salt,IterationCount </code></pre> <p>the ==SCRAM== prefix is constant, other parts depends on the password.</p> <p>Hope that helps.</p>