Questions tagged [lockbox-2]

Turbo Power LockBox is an open source encrypting library for Delphi Pascal dialect.

Current version is v.3 situated at http://lockbox.seanbdurkin.id.au

However v.2 was very popular and there is still a lot of examples in the net and legacy code. Porting Lockbox-2 to Lockbox3 or other modern encrypting libraries is not always straightforward, like mentioned for example at http://lockbox.seanbdurkin.id.au/tiki-view_forum_thread.php?comments_parentId=410

There is tag "Lockbox-3" but using it when the question touches issues specific for v.2 is just confusing

10 questions
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
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
0 answers

Java equivalent of Delphi encryption?

I have a Delphi 2010 application, that uses the Lockbox component for encrypt data. The program is calling the Triple DES Encrypt String CBCEx function with Key128. The key is generated by function: GenerateLMDKey(Key128, SizeOf(Key128),…
1
vote
1 answer

How to configure Android RSA key generation (or key use) so that it works like Delphi TurboPower Lockbox 2 RSA key generation/use?

I have the following code for Delphi 10.2 TurboPower LockBox 2 RSA keys generation and their represenation as some string: //Object properties object LbRSA1024: TLbRSA PrimeTestIterations = 20 KeySize = aks1024 Left = 416 Top =…
TomR
  • 2,696
  • 6
  • 34
  • 87
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
0
votes
0 answers

How to use RSA 1024 if 8 byte string is encrypted as 172 byte string, but RSA works on strings less than 62 bytes?

My question is implementation-irrelevant, but I am giving implementation details anyway: I am working with Delphi 10.2 TurboPower LockBox 2 (https://github.com/jarto/lockbox2) implementaion. This is quite popular library for Delphi and that is why I…
TomR
  • 2,696
  • 6
  • 34
  • 87
0
votes
0 answers

'Invalid RSA key' when trying to load RSA public key in the Turbo LockBox 2 most basic code (just 2 lines of code)

I have the most basic Turbo LockBox 2 code that tries to load public RSA key that is generated with https://travistidwell.com/jsencrypt/demo/ Here is the unit: unit MainFormU; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils,…
TomR
  • 2,696
  • 6
  • 34
  • 87
0
votes
1 answer

Trying to determine which verison of BlowFish is used by TurboPower LockBox 2 and/or 3

Trying to determine which verison of BlowFish is used by TurboPower LockBox 2 and/or 3. Any ideas? I've done a bunch of reserach and just see "BLOWFISH" but no version.
0
votes
1 answer

Using LockBox3 with Delphi XE4 without installation

I'm porting program from Delphi 2009 to XE4 and got problem with LockBox encryption. Encrypt/decrypt unit is using just one component: interface function Encrypt(aStr: String): String; function Decrypt(aStr: String): String; …
vico
  • 17,051
  • 45
  • 159
  • 315
-2
votes
1 answer

In ruby on rails how to encrypt data and store in database

I am using rails v 5.1.7 and ruby v 2.6.3 i need to encrypt data like mobile number at db level how to achieve this, any gem suggestion to use
user18578733