Need help - UK Payroll module

Hi All

Are here developers from the UK?

How to create IRMark during sending xml file to HMRC?

I’ve generated an XML document and need to do the following:

  • Canonicalize (14N) the XML Document
  • Generate a 160-bit binary secure has from the canonicalized xml using SHA-1 algorithm
  • Encode the binary data using base-64 to produce a 28 characters string
  • Encode the binary data using base-32 to produce an easily humanreadable 32 characters string

Thanks,

Hugon