Questions tagged [lockbox-3]

TurboPower LockBox 3 is a native-code open source cryptographic library written in Delphi.

The current target platform is Win32. The home page is at http://lockbox.seanbdurkin.id.au/ and the sourceforge page is at https://sourceforge.net/projects/tplockbox/

76 questions
2
votes
0 answers

LockBox 3 - PKCS padding does not seem to be supported

I have a class hierarchy which abstracts the Lockbox crypto components. Specifically, we are interested in AES-265 with PKCS#5 padding. The class instance is set correctly with CBC and the encoding explicitly set to ANSI but the resulting output is…
Andrea Raimondi
  • 527
  • 8
  • 30
2
votes
0 answers

Migrating AES from lockbox2 to lockbox3 delphi

I'd like to migrate my old crypto functions from lockbox2 to lockbox3 on delphi XE6. Before to do that I've made a code (CipherComp.dpr) to compare the output, since the setup have changed. I'm using AES-ECB (to avoid IV) 256 bits, key:…
Gonzalo A.
  • 123
  • 7
2
votes
2 answers

LockBox3 Generate the same RSA Key Pairs

I recently decide to came across the LockBox3 crypto component set and follow the straightforward documentation about how to generate a RSA Key Pair using the following link : http://lockbox.seanbdurkin.id.au/Generate+an+RSA+key (Official…
2
votes
0 answers

Convert RSA keys from LockBox 2 to LockBox 3

I convert our project from Delphi 5 to XE4. I used LockBox 2 in Delphi 5. Now I want to use LockBox 3, but I have some RSA keys (generated in LockBox 2). I can't load this keys in LockBox 3. I looked for some info about LockBox 2. I found that…
arny
  • 21
  • 2
2
votes
1 answer

AES Encrypt/Decrypt Delphi & PHP

My Delphi application uses TurboPower LockBox 3 to encrypt a plaintext information using AES 256. I now want to decrypt this information using PHP. But TurboPower LockBox 3 has some interoperability issues. Please check the post by LockBox 3 author…
Madhur
  • 2,119
  • 1
  • 24
  • 31
2
votes
1 answer

Turbopower Lockbox3 - Can I control initialization vector and padding for AES-256 encryption?

In the process of moving from Delphi2007 to XE2, we are thinking about switching encryption libraries from DCPCrypt to Turbopower Lockbox 3. a) In DCPCrypt I have explicit control over the initialization vector. How would I set the IV in TPLB3? b)…
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
1
vote
2 answers

Convert Lockbox2 cipher text to Lockbox3 cipher text

Is there a way I can Convert my Lockbox 2 Cipher text to LockBox 3 Cipher text. We are migrating our application built on Delphi 2007 to Delphi xe2, we used the Lockbox 2 RSA Encryption algorithm in Delphi 2007 and we intend to use lockbox 3 in…
SK9
  • 87
  • 11
1
vote
2 answers

How to change THash.Hash at runtime

How can I change the default THash.Hash algorythm from trhe default SHA-1 to MD5? The following does not works: var StringHash: THash; begin StringHash.Create(nil); StringHash.Hash := 'MD5'; end; Edit: Yes you are all right: I apologize for…
Fabio Vitale
  • 2,257
  • 5
  • 28
  • 38
1
vote
2 answers

E2134 Error in Turbopower LockBox code when building with runtime type information

I have to build my program with runtime type information, so compiler option Emit runtime type information is checked. But with this set the LockBox3 unit uTPLb_codecIntf.pas gives error E2134 Type has no type info on the line containing…
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
1
vote
2 answers

ClientDatSet.LoadFromFile(DeCryptFile(XMLFile))?

I have a Delphi 10.4 program with a clientdataset, loading XML files users choose with OpenFile dialog. It works just fine and depending on the contents of the XML, the fielddef structure is set automatically. Now I want to be able to read Decrypted…
1
vote
1 answer

Verify RSA signature with LockBox

I would like to verify a digital signature with LockBox3 (or LockBox2 if version 3 isn't suitable for whatever reason). I have a public key file in PEM form (I can't create new keys with LockBox, because I need to use and existing key pair that is…
CodeX
  • 717
  • 7
  • 23
1
vote
1 answer

LockBox 3 Encrypting not matching online tool, suspect padding or key problem

I have a client providing an API that dictates the data to send to them must be encrypted with AES, 128-bit key, ECB mode, and PKCS5Padding. I'm trying to use LockBox 3 in Delphi 10.3 Rio and am not getting the same encrypted string as an online…
David Cornelius
  • 437
  • 1
  • 5
  • 12
1
vote
1 answer

Unable to decrypt XXTEA encrypted string using LockBox3

I am currently testing Lockbox3, and have run into a problem trying to do a simple string encryption & decryption using the XXTEA cipher. I'm using Delphi 10.1 Berlin and installed the latest version of Lockbox3 using GetIt! My test app is targeted…
Adriaan Jutte
  • 53
  • 1
  • 3
1
vote
2 answers

TurboPower LockBox 3 will not install in Delphi XE4 - error during compile

I am trying to use LockBox 3 in Delphi XE4 to replace an encryption suite that has inexplicably stopped working. I opened the Delphi project file and the three bpl's show up, but when I right-click and then choose install on LockBox3VCLDD240.bpl,…
Dan Swain
  • 2,910
  • 1
  • 16
  • 36
1
vote
0 answers

Using Delphi LockBox 3: How to communicate with android device?

I'm building a RESTful server using Delphi XE8 with LockBox 3 for encryption. I use AES to encrypt data (JSON) and send it to an Adroid device - Client. If I send the encrypted data to client and the client knows the encryption key, how could he…
user2005049
  • 510
  • 1
  • 5
  • 26