If I understand correctly, you would like to generate a configuration QR code from which multiple devices can be configured as described here. Is that right?
That QR code uses a json representation of the settings with a structure such as
{
"general": {
"protocol": "google_sheets",
"constraint_behavior": "on_finalize"
},
"admin": {
"edit_saved": false
}
}
There is no encryption, the json is just compressed with zlib. You can read more about the implementation at https://github.com/opendatakit/collect/issues/781 and there's a ticket to document this more thoroughly at https://github.com/opendatakit/docs/issues/15