Home

MS Base

  • prefix: ms:
  • schema: b:

Categories (Data):

Categories (Governance):

payloads:

 
 

Schema element "b:checksum"

One checksum on bytes.

Definitions

<element name="checksum">
  <complexType>
    <simpleContent>
      <extension base="b:Bytes">
        <attribute name="by" type="b:UnitRef" use! />
      </extension>
    </simpleContent>
  </complexType>
</element>

Description

Contains a checksum of the byte content.

Be aware that MD5 sums are fast but not safe against directed attacks. SHA1-sums are close to being breached. When you do trust the source of your bytes, there is nothing wrong with either. But when your data is transported over unprotected infrastructure, then you should use better sums.

attribute by

The Constant which indicates which kind of sum has been applied. In the ms: namespace, they are named ms:Checksum/<something>.

Examples

Distributing a sum with remote files

<unit uid="cv.html">
  <content>
    <mediatype>iana:MimeType/text/html</mediatype>
    <checksum encoded="wp:Encoding/Hex" by="wp:Checksum/MD5">
       490201fd0ae7192044e0a18f270182e3
    </checksum>
    <checksum encoded="wp:Encoding/Base64" by="wp:Checksum/SHA256">
       03bea1dc02b7756f7393ba0d10121081f7348542769f2328bd93c262a719a46f
    </checksum>
    <fetch />
  </content>
</unit>

mark@overmeer.net      Web-pages generated on 2023-12-19