0

My Access 2000 application is generating a PDF from a snapshot of a report using ReportToPDF.

After I have the PDF file generated, I am converting it to binary and saving to MS SQL Server. I'm looking for a way to encrypt it before I save it to the server.

What are my options as far as encryption?

Brock Adams
  • 90,639
  • 22
  • 233
  • 295
Spidermain50
  • 689
  • 1
  • 12
  • 23
  • 1
    Use AES in either CBC mode with PKCS7 padding or in CTR mode (no padding required). If you need to ensure it hasn't been altered then use HMAC as well. – rossum Aug 31 '11 at 18:24
  • Do you know of any source code I can use as an example? – Spidermain50 Aug 31 '11 at 18:50
  • What are you using? Java and C# both have AES built in, and there is BouncyCastle as well. Most systems will have an implementation of AES, it is very common. – rossum Aug 31 '11 at 18:57
  • Nevermind I found a demo here... http://www.freevbcode.com/ShowCode.Asp?ID=2389 – Spidermain50 Aug 31 '11 at 20:59

1 Answers1

0

Found a demo that shows how to use AES encryption for vba/vb6... http://www.freevbcode.com/ShowCode.Asp?ID=2389

Spidermain50
  • 689
  • 1
  • 12
  • 23