3

where can I find a version of LockBox for Delphi-XE

menjaraz
  • 7,551
  • 4
  • 41
  • 81
Charles Faiga
  • 11,665
  • 25
  • 102
  • 139

4 Answers4

4

There's a Delphi 2010 version available on Songbeamer.com. Based on my experience porting Abbrevia to Delphi XE, it should work as-is. You may want to rename the project files, but that should be about it.

Zoë Peterson
  • 13,094
  • 2
  • 44
  • 64
1

I believe that the Songbeamer version is not the "official" sourceforge version.

Sean is managing both LockBox 2 and 3 code here: link

Also see this post on his forums.

RobertFrank
  • 7,332
  • 11
  • 53
  • 99
  • 2
    Sadly, the "official" version of Lockbox 2 hasn't been updated past Delphi 7, and Lockbox 3 is a completely new (GPL) library. They shouldn't be considered the same project. If you have legacy code using Lockbox, the Songbeamer version is your best choice. – Zoë Peterson Nov 02 '10 at 20:57
  • 1
    Lockbox 3 has LGPL licensing NOT GPL - big difference. In December 2010, I will be modifying the licensing to dual LGPL/MPL. In other words the user can choose to use and redistribute in either LGPL or MPL. – Sean B. Durkin Nov 26 '10 at 00:56
  • @Sean: I think it's great that you're developing *an* encryption library for Delphi, but IMO, if it's not compatible with Lockbox 2 you have no business calling it Lockbox 3. The license "change" was only one small aspect of that. If you have to completely rewrite your code to upgrade to a new version it's not the same library and shouldn't be presented as such. – Zoë Peterson Jan 18 '11 at 16:24
  • 2
    I dont agree. There are plent of examples of popular product lines that break API when they move to a new major version. It is fair, valid and proper that LB3 be called that because it provides the same functionality and the administrative control has an unbroken line of descent to that of LB2. LB3 is in LB product line, but it is not the same library as LB2. It has never been presented as the same library. The home page and the about box is very clear about that. – Sean B. Durkin Feb 23 '11 at 04:00
1

You can make it work. It is not that hard.

  1. Download from SVN. I'll refer to the base directory as tplockbox.
  2. Go to the tplockbox/trunc/packages directory. Copy the d2010 directory contents to a new directory named XE.
  3. Rename TP_LockBox_d2010.grouproj to TP_LockBox_XE.groupproj
  4. Open it, right click TP_LockBox3_d2010.bpl, go to Options, change "LIB suffix" from the Description section to _XE.
  5. Do the same for the dclTP_LockBox3_d2010.bpl project
  6. Adjust output paths and directories for all projects. I don't remember if I just went ahead and changed this globally.
  7. Build and install TP_LockBox3_XE.bpl and dclTP_LockBox3_XE.bpl packages.

If you want the test cases to work, you'll have to modify the tplockbox/trunc/test/uLockBox_TestCases.pas file. There are some hard coded checks for an older version of DUnit than the one that comes with Delphi XE. You can just comment out these checks.

Leonardo Herrera
  • 8,388
  • 5
  • 36
  • 66
0

You should try the soureforge.net version, the TurboPower tools were updated by Nick Hodges and many others (IIRC it's even based on the songbeamer.com version):

http://sourceforge.net/projects/tplockbox/

Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
  • 3
    Unlike some of the other TurboPower projects, the SourceForge version of Lockbox never merged the Songbeamer.com changes. Sean Durkin completely re-wrote the library for v3, broke the existing APIs, and changed the license to GPL. – Zoë Peterson Nov 02 '10 at 20:59
  • 2
    See comment above. LGPL not GPL. LB2 uses MPL. LB3 has never "changed" its licensing. LB3 was developed from zero with LGPL. – Sean B. Durkin Nov 26 '10 at 00:58
  • License is now dual both LGPL and MPL – Robert Love Feb 09 '11 at 16:58