title: How to decrypt rich text data exported in dxl using lotus script?
body: <p>i am using lotus script code to export items in dxl file. here is the code.</p>
  
  <pre><code>Sub Initialize
  Dim session As New NotesSession
  Dim db As NotesDatabase
  Dim dc As NotesDocumentCollection
  Dim filename As String
  Dim stream As NotesStream
  Dim exporter As NotesDXLExporter
  Set db = session.Currentdatabase
  set dc = db.UnprocessedDocuments
  filename = "c:/temp/exportDocs.dxl"
  set stream = session.createStream()
  If stream.Open(filename) Then
      Call stream.Truncate()
      set exporter = session.CreateDxlExporter()
      exporter.Richtextoption = 1
      exporter.MIMEOption = 0 
      Call stream.WriteText(exporter.Export(dc))
  End if
  </code></pre>
  
  <p>End Sub</p>
  
  <p>after data is exported.i am getting body of item in this type</p>
  
  <p>
  gv9aAAEAAAAAAAAA..........encrypted data.</p>
  
  <p>i have decode this buffer into base64 and i am getting my data. but i am getting some header in my data after base64 decoding . the starting signature of header buffer after base64 decoding is 0x5AFF82. can anyone tell me how can i decrypt it.?</p>