Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encrypt and decrypt table field binary value.
Message
From
06/06/2003 11:08:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/06/2003 09:37:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00797206
Message ID:
00797281
Views:
13
>Can you please tell me how i can encrypt a field in the table because i store the licence number in it.
>
>And then if i want to change it to something else then i call the encrypted value to front and decrypt it and then finally again encrypt it to send to the table back.
>
>This is a small licence limit software for the application.
>
>for example if it is initially the value is 10 which is encrypted in the table.
>
>Later on if the client says they want to increase it to 12.
>
>then i should call the ten which is already encrypted in the table and change it to 12 with encryption.
>
>I am using the cipher50.fll file to encrypt.
>
>encryption part is ok but when i am calling the encrypted value from the table to decrypt it there it is not doing.
>
>table name is keytbl,
>fieldname is lickey
>
>***************I am doing thew following to encrypt which works************
>
>lcEncryptkey = thisform.text1.value
>
>SET LIBRARY to cipher50 ADDI
>
>SELECT keytbl
>REPLACE lickey WITH Encrypt(lickey, lcEncryptkey)
>
>***************************************************************************
>
>Now i want to decrypt the table field Can you please tell me.
>
>Thank you very much.

As I remember Cipher5.fll was using the same encrypt() function to encrpyt/decrypt.


lcEncryptkey = thisform.text1.value

SET LIBRARY to cipher50 ADDI

SELECT keytbl
REPLACE lickey WITH Encrypt(lickey, lcEncryptkey)

lcDecrypted = Encrypt(trim(keytbl.lickey), lcEncryptkey)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform