Recent

Author Topic: Encrypting files in a windows environment using FPC  (Read 5527 times)

netcoil

  • Newbie
  • Posts: 3
Encrypting files in a windows environment using FPC
« on: May 27, 2009, 08:10:00 pm »
Please can anyone tell me what Classes/Package or windows Api calls is best for encrypting files using FPC in a windows environment.

Thanks.

Nicola Gorlandi

  • Jr. Member
  • **
  • Posts: 80
Re: Encrypting files in a windows environment using FPC
« Reply #1 on: May 30, 2009, 07:55:19 am »
You can try with DCPcrypt, I don't know if this set has a direct file encryption, but you can stream the file, encrpyt and then rewrite the stream crypted...

See http://www.cityinthesky.co.uk/cryptography.html for details

 


netcoil

  • Newbie
  • Posts: 3
Re: Encrypting files in a windows environment using FPC
« Reply #2 on: May 30, 2009, 12:59:14 pm »
Thanks nicolagorlandi, Am trying out the units,
when i tried building a solution based on the units, it gives me an error of
\\DCPbase64.pas(81,9) Error: Identifier not found "Result"

Should i declare the Result Identifier? , i believe the Unit should be complete without errors when compiled,

Please any help on this? Thanks.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8264
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Encrypting files in a windows environment using FPC
« Reply #3 on: June 01, 2009, 05:03:29 am »
I believe the unit should be compiled either in ObjFPC or Delphi mode.

 

TinyPortal © 2005-2018