Encryption vector and key in openmrs-runtime.properties

Hi guys!

I am looking at having a process that generates the openmrs-runtime.properties when it does not exist. But I notice there is:


I am guessing those are randomly generated.

  1. What are they and what for?
  2. Any idea how I can generate them myself (using a bash command or third party lib…)

They are used for the encryption capabilities of the Security utils class.

They are generated here during system initialization.

Great! Thanks @mksd

@mksd, do you know what happens if they are not provided?