sha256

308 views
Skip to first unread message

Daniel Aisenberg

unread,
May 11, 2022, 10:11:01 AM5/11/22
to harbou...@googlegroups.com
Saludos:

Existe alguna función para clacular un sha256 sobre un archivo con harbour?
Si no existe, hay algún aplicativo ejecutable (que no sea una página web)

Gracias

Daniel Aisenberg

unread,
May 11, 2022, 10:13:06 AM5/11/22
to harbou...@googlegroups.com
Perdón ya vi el CERTUTIL de windows.
Si existe en harbour igual me es útil.




Yakano

unread,
May 18, 2022, 3:45:19 AM5/18/22
to Harbour Users
Hola.
Tienes todas estas opciones...

hb_CStr(hb_Adler32('Probando CheckSum de este Texto',nil))
hb_CStr(hb_CRC('Probando CheckSum de este Texto',nil,nil))
hb_CStr(hb_CRC16('Probando CheckSum de este Texto',nil))
hb_CStr(hb_CRC32('Probando CheckSum de este Texto',nil))
hb_CStr(hb_CRCCT('Probando CheckSum de este Texto',nil,nil))
hb_CStr(hb_MD5('Probando CheckSum de este Texto',nil))
hb_CStr(hb_SHA1('Probando CheckSum de este Texto',nil))
hb_CStr(hb_SHA224('Probando CheckSum de este Texto',nil))
hb_CStr(hb_SHA256('Probando CheckSum de este Texto',nil))
hb_CStr(hb_SHA384('Probando CheckSum de este Texto',nil))
hb_CStr(hb_SHA512('Probando CheckSum de este Texto',nil))

Espero que encuentres la tuya...
Saludos!

P.D. Es recomendable que preguntes en inglés (usa google translator si lo necesitas)

Eric Lendvai

unread,
May 18, 2022, 4:31:30 AM5/18/22
to Harbour Users
I wish google groups had a built in translator. 
Would make it easier to communicate across spoken languages.

My other wish is that Harbour would have a bcrypt function. It is the most secure way to create a password hash.

Eric.

Angel Pais

unread,
May 18, 2022, 7:19:55 AM5/18/22
to harbou...@googlegroups.com
Hi Eric
hb_blowfishEncrypt() and hb_blowfishDecrypt() functions aren't the same?

Angel

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/cbc5dd82-c6ee-4252-a8bf-d9c33c0f5d7bn%40googlegroups.com.

A

unread,
Sep 25, 2023, 7:15:10 AM9/25/23
to Harbour Users
Hi Eric,

Do not know if this is still of interest but I was looking for a bcrypt funktion in Harbour and just found this post. 

In the meantime I have also found that this function exists in the hbcrypt contrib library. 

Amos

Eric Lendvai

unread,
Sep 25, 2023, 11:52:35 PM9/25/23
to Harbour Users
Hello Amos, 
bcrypt is very different then the other encryptions. It can be configure to deal with brute force attacks. 
I did not spend more time looking into this. But now that we can call Python packages natively in Harbour maybe the following will work:

Baxajaun

unread,
Sep 26, 2023, 6:44:45 AM9/26/23
to Harbour Users
Hi Eric,

have you tried Viktor's solutions 


Have a nice day.

Regards,

Eric Lendvai

unread,
Sep 27, 2023, 2:09:59 AM9/27/23
to Harbour Users
Thanks Félix.
I started to compare Viktor's version of Harbour with the "Official" one, and there seems to be a lot of differences.
The problem is that Viktor is not active anymore, and sadly his great enhancements are not in the core repo.
I will try to bring in his hbcrypto contrib in the official core repo and hopefully it can get merged.
Any help from the core developers would be appreciated ...
Eric

Bela Csaszar

unread,
Sep 27, 2023, 3:23:57 AM9/27/23
to harbou...@googlegroups.com
Szia Eric,

Tegnap beszéltem Viktorral. Szerintem lenne hajlandóság a részéről, hogy korszerűsítsen a Harbour-on. A Lengyel Úriembert kell már csak előkeríteni.

Üdvözlettel, Császár Béla

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.

Eric Lendvai

unread,
Sep 27, 2023, 5:50:44 AM9/27/23
to Harbour Users
Szia Béla,

Sorry to reply in English, I can talk in Hungarian, but not very good at writing. I was born in Belgium, as a Hungarian from Hungarian parents.
Now in Seattle, very very late ...

I just made a pull request:  https://github.com/harbour/core/pull/318
Where I did my best to incorporate hbcrypto.
I have a little concern about the following files:
  * src/rtl/sha2.c
  * src/rtl/sha2hmac.c
  * src/rtl/hbsha2hm.c
  * src/rtl/hbsha2.c
They may have been enhanced before Viktor worked on them.


Would really enjoy speaking with you and Viktor and can setup a zoom meeting if that works. Please connect with me at https://www.linkedin.com/in/ericlendvai/

By the way I am now working on a new initiative: https://wharf.systems/

Thanks, Eric


Reply all
Reply to author
Forward
0 new messages