Try:

MD5=sha256sum kamctl add ...

Cheers,
Daniel

On 04.03.25 15:31, Social Boh wrote:

Thank you for your reply, maybe I don't express correctly the concept.

when I create a user with kamctl, the subscriber table:

ha1 string 128 '' no

md5(username:realm:password)

ha1b string 128 '' no

md5(username@domain:realm:password)

How can I create a user using sha-256 hash?

Regards

---
I'm SoCIaL, MayBe
El 4/03/2025 a las 9:20 a. m., Daniel-Constantin Mierla escribió:
Hello,

On 04.03.25 15:08, Social Boh via sr-users wrote:
Hello list,

is it possible create a user using sha-256 hash?

My goal is Asterisk PBX Register ----- sha-256 digest authentication
-> Kamailio
yes, you can specify the auth algorithm per user with the function:

  -
https://www.kamailio.org/docs/modules/devel/modules/auth.html#auth.f.auth_algorithm

Cheers,
Daniel

-- 
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Kamailio Advanced Training, March 24-28, 2025 -- asipto.com
Kamailio World Conference, May 12-13, 2025, Berlin -- kamailioworld.com