@mfalkvidd , yes, I see. As I wrote in the first post I was using https://github.com/mysensors/MySensors/tree/development/examples/SecurityPersonalizer code.
I checked with the Personizer code in the Library examples - it does compile, thanks.
What I find a bit confusing - in the sketch in exampla library you have to make two keys - USER_SOFT_KEY and USER_KEY (when you do not use hw hashing, and when you do).
I have mixed configurations. Should those keys be the same in my network for mixed configuration to work?
thanks for help and sorry for confusion