Search found 236 matches: decrypt

Return to advanced search

Re: TDatabase Class

... like this: oCustomers:=TCustomers():new() This way you can add methods (which are now functions) to the database object. Possibly you could also decrypt and encrypt the data with the Load() and Save() methods. So try this: oCustomers:= TDatabase(, xVol+"\DBTMP\"+CustDbf.DBF") oCustomers:use() ...
by James Bott
Wed May 19, 2021 5:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: TDatabase Class
Replies: 18
Views: 2077

Re: Crypt password, decrypt elsewhere

Gilbert,

If you don't need to support cryptography for your encryption/decryption needs, then we could explain you how the FWH Encrypt()/Decrypt() work so you can code it in any language
by Antonio Linares
Thu Jan 21, 2021 10:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Crypt password, decrypt elsewhere
Replies: 1
Views: 319

Crypt password, decrypt elsewhere

Hello, for creating a connection to another software, I need to write a crypted password to a json file and decrypt it at the other project (.net / c#). Therefore I need an universal algorithm, that can be decrypted elsewhere. Is there any possibility within Fivewin / xHarbour? ...
by gkuhnert
Thu Jan 21, 2021 9:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Crypt password, decrypt elsewhere
Replies: 1
Views: 319

Secure an AJAX request

... + cVar) return (cvar) --------------------------------------------------------------------------------------------------- Inside AJAX call we decrypt and check the time against the time passed. If there is more than 2 sec difference we answer with an error msg. function main () .. local hPairs: ...
by Otto
Thu Nov 12, 2020 6:00 pm
 
Forum: mod_harbour
Topic: Secure an AJAX request
Replies: 2
Views: 435

HB_Crypt() is not compatible with Latin1

Dear All, I use MariaDB and I got a problem with HB_Crypt( cPass, cKey ) and store in column (Latin1). When I use HB_Decrypt( oRs:cEncPass, cKey ), it returns incorrect. What kind of Charactor does support HB_Crypt() or How do I store HB_Crypt and HB_Decrypt() back correctly in MariaDB column. Thank...
by dutch
Sun Sep 06, 2020 2:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HB_Crypt() is not compatible with Latin1
Replies: 2
Views: 583

Re: Almacenar contraseñas con FWH MySQL/MariaDB

... cChave) msginfo(clavencriptada,"encrypt") claveDecriptada :=hb_Decrypt(clavencriptada,cChave) msginfo(claveDecriptada,"decrypt") ENDIF IF lSalir Return Nil endif RETURN( NIL) Como seria hacer esto pero con la clase FWH Mysql/Mariadb
by Adolfredo Martinez
Mon Apr 13, 2020 9:12 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Almacenar contraseñas con FWH MySQL/MariaDB
Replies: 4
Views: 904

Almacenar contraseñas con FWH MySQL/MariaDB

Hola Amigos del forum. Necesito almacenar contraseña con la clase fwh mysql/mariadb, utilizando el algorismo AES y averiguando encontré esto: Para encriptar INSERT INTO usuarios VALUES('usuario',AES_ENCRYPT('contraseña','llave')); Para desencriptar: INSERT INTO usuarios VALUES('usuario',AES_DECRYPT(...
by Adolfredo Martinez
Mon Apr 13, 2020 12:49 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Almacenar contraseñas con FWH MySQL/MariaDB
Replies: 4
Views: 904

Re: how to check Encrypt() and Decrypt()?

Dear Antonio, Thanks a lot, I got it. Dutch, Having hb_crypt() and hb_decrypt() and I would advise to use them instead of FWH Encrypt() and Decrypt() Please be aware that they are not compatible. So please decrypt before changing encryption functions On the other hand, Harbour functions source ...
by dutch
Tue Feb 18, 2020 2:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to check Encrypt() and Decrypt()?
Replies: 6
Views: 1241

Re: how to check Encrypt() and Decrypt()?

Dutch, Having hb_crypt() and hb_decrypt() and I would advise to use them instead of FWH Encrypt() and Decrypt() Please be aware that they are not compatible. So please decrypt before changing encryption functions On the other hand, Harbour functions source code is available, ...
by Antonio Linares
Mon Feb 17, 2020 12:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to check Encrypt() and Decrypt()?
Replies: 6
Views: 1241

Re: how to check Encrypt() and Decrypt()?

Dear Antonio&Cnavarro,

Thank you both of you. I got it, we have to write our own function. I've another question.

Which is the best Hb_crypt() and Encrypt() or etc.? Because of GDPR.

Thank you in advance
by dutch
Sun Feb 16, 2020 11:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to check Encrypt() and Decrypt()?
Replies: 6
Views: 1241

Re: how to check Encrypt() and Decrypt()?

ok, this way works fine:

? hb_decrypt( hb_crypt( "hello", "key" ), "key" )

thanks Cristobal!
by Antonio Linares
Sun Feb 16, 2020 11:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to check Encrypt() and Decrypt()?
Replies: 6
Views: 1241

Re: how to check Encrypt() and Decrypt()?

Yo lo uso así:
Code: Select all  Expand view

      cCad  := hb_Crypt( cCad, cPassW )
 

Code: Select all  Expand view

     cCad := hb_Decrypt( cCad, cPassW )
 
by cnavarro
Sun Feb 16, 2020 10:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to check Encrypt() and Decrypt()?
Replies: 6
Views: 1241

Re: how to check Encrypt() and Decrypt()?

Dutch, This is a first idea that you could enhance: function Main()   ? IsEncrypted( hb_crypt( "Hello" ) )return nilfunction IsEncrypted( cText )   local c      for each c in cText      if ! Lower( c ) $ "abcdefghijklmnopqrstuvwxyz0123456789()[]...
by Antonio Linares
Sun Feb 16, 2020 8:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to check Encrypt() and Decrypt()?
Replies: 6
Views: 1241

how to check Encrypt() and Decrypt()?

If I Encrypt() data in a field. How to I ensure that, this field contain Encrypt data?

As Six Driver SX_TABLETYPE(), it will return 1 as Normal, 2 as Encrypt DBF.

How to check it, because when I use Encrypt() again. It did as twice encrypt.

Thanks in advance.
by dutch
Sun Feb 16, 2020 7:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to check Encrypt() and Decrypt()?
Replies: 6
Views: 1241

Re: encrypt/decrypt in Harbour and php

Yes, but in version 3.2 there are also
I use this functions with cMimeEnc and cMimeDec functions
by cnavarro
Sun Dec 22, 2019 10:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: encrypt/decrypt in Harbour and php
Replies: 7
Views: 1145
PreviousNext

Return to advanced search