=0= and =2= in the ACO values, what does it mean ?

Document ID : KB000122172
Last Modified Date : 30/11/2018
Show Technical Document Details
Question:
What are the values =0= and =2=  seen in the ACO parameters within the XPS dump? Example 

<StringValue>DefaultAgentName=2=myagent</StringValue>
<StringValue>Enableauthorization=0=yes</StringValue>
<StringValue>LogFileSize=0=100</StringValue>

Also why do we need to add the =0= when adding the Attributes through REST API ? Example 
 "CookieDomain=0=.domain.com"
Answer:
In the old model, a Property object has name, flags, and value, represented in XPS as <name>=<flags>=<value>. 
2 is the same as 0, should not be used. only 0 and 1 should be used. 

Flags is a bit-set, but only the first bit is used, for 'encrypted'. 
So, any even value means 'not-encrypted> and any odd value means 'encrypted'