Jump to content
Sign in to follow this  
Halil Han Badem

HBComponents - hbOAuth, hbGoogle, hbMailSender

Recommended Posts

Greetings to everyone!

 

My first post on this forum. Please forgive me if I'm posting in the wrong place.

 

I turned some of the classes I had developed for the problems I encountered in daily life into a component set. I'm thinking of making additions in the future. I just wanted to add in case it helps. You can find detailed information on readme.md. I'll keep it short so I don't make it too long.

 

Github: https://github.com/halilhanbadem/delphi-hb-components

 

Thanks.

  • Like 3

Share this post


Link to post
2 hours ago, Lars Fosdal said:

OAuth 1.0 only?

Yes, I wrote that class for Wordpress plugin Woocommerce API validation. I haven't reviewed the OAuth 2.0 documentation yet. If I need it in the future, I will include it in the set. In the future, I will add the component that performs encryption and decryption with AES256-CBC to the set. A very common situation; For example, I have seen many questions such as AES output with PHP is not the same as Delphi. I have solved this problem in the past. I'm thinking of turning it into a component and including it in the set again. I'm thinking of working in OAuth 2.0 in the future.

 

I had developed a project for AES 256 encryption where one part encrypts and the other part reads. I just completed the project that does two-sided encryption/decryption. I'll add it when my workload is less.

Sorry for my bad english 😞

 

https://github.com/halilhanbadem/AES-256-CBCEncryptionDelphi_PHP

Edited by Halil Han Badem

Share this post


Link to post

Your English is fine.  Most of the APIs we use, require OAuth 2.0, hence my question.

  • Like 1

Share this post


Link to post
1 minute ago, Lars Fosdal said:

Your English is fine.  Most of the APIs we use, require OAuth 2.0, hence my question.

Thank you sir. I understand, but for now it is only designed for OAuth 1.0 system.

Edited by Halil Han Badem

Share this post


Link to post
Guest
50 minutes ago, Halil Han Badem said:

I had developed a project for AES 256 encryption where one part encrypts and the other part reads. I just completed the project that does two-sided encryption/decryption. I'll add it when my workload is less.

Sorry for my bad english 😞

 

https://github.com/halilhanbadem/AES-256-CBCEncryptionDelphi_PHP

Nice !, and i like how you combined all the padding in one place, but i have to point a thing about this padding function at https://github.com/halilhanbadem/AES-256-CBCEncryptionDelphi_PHP/blob/master/delphiAESDemo/lib/AESEncDec.pas

 

Zero padding and Random padding should not be here, i mean for encryption, as they can and most likely will cause data corruption, zero padding is essential for hashing calculation but very dangerous or even wrong with encryption/decryption, and as you designed it for only encryption then they both should not be here or at least warn the user about there dangerous when decryption, there is no way to check length of the data, unless you include the data length within the data itself, in this case you are better with the other padding methods as they handle this right.

 

Share this post


Link to post
2 minutes ago, Kas Ob. said:

Nice !, and i like how you combined all the padding in one place, but i have to point a thing about this padding function at https://github.com/halilhanbadem/AES-256-CBCEncryptionDelphi_PHP/blob/master/delphiAESDemo/lib/AESEncDec.pas

  

Zero padding and Random padding should not be here, i mean for encryption, as they can and most likely will cause data corruption, zero padding is essential for hashing calculation but very dangerous or even wrong with encryption/decryption, and as you designed it for only encryption then they both should not be here or at least warn the user about there dangerous when decryption, there is no way to check length of the data, unless you include the data length within the data itself, in this case you are better with the other padding methods as they handle this right.

 

Thank you for your feedback. I will make corrections on the subject as soon as possible.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×