Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples #47

Open
marcelericloiselle opened this issue Jan 28, 2025 · 7 comments
Open

Examples #47

marcelericloiselle opened this issue Jan 28, 2025 · 7 comments

Comments

@marcelericloiselle
Copy link

Hi,

Evan if I'm an experimented programmer, my knowledge of cryptography is theoretical and non technical only. So I have difficulty using the library.
Are you aware of any other example available, Especially about public/private usage for encryption.

I hope it is the right place to ask this questions.

Thanks in advance

@Xor-el
Copy link
Owner

Xor-el commented Jan 28, 2025

Hello @marcelericloiselle , thanks for your interest in CryptoLib4Pascal.
you can find usage examples here and the tests here
This should provide you with sufficient samples on what you want to achieve.
if you have any other questions, please feel free to ask.

@marcelericloiselle
Copy link
Author

Thanks for you lightning fast answer!

I have seen these two projects, but that is not enough for me. The learning curve is a bit to steep for me. Do you know if somebody else have publish examples.

I need to encrypt data exchange with another implication and we choose to use public/private key to use that.

BTW: It is really great to see that someone took the time to create and maintain these crypto projects

@Xor-el
Copy link
Owner

Xor-el commented Jan 28, 2025

So most of the public usage samples of the library are more or less similar to what is in the UsageExamples project.
that been said, I think ECIES might be a good fit for your use case and you can find an example here

@Xor-el
Copy link
Owner

Xor-el commented Jan 31, 2025

Hello @marcelericloiselle were the samples helpful?

@marcelericloiselle
Copy link
Author

I thank for the follow up.

Not really I'm still confuse.

After finding the RSA encryption length limitation. We will be using an hybride AES and RSA encryption.

  1. Randomly generate a AES key and use it to encrypt the data
  2. Encrypt the AES key using an RSA pubic key
  3. Send both the ASE key and the encrypted data

@Xor-el
Copy link
Owner

Xor-el commented Jan 31, 2025

Not really I'm still confuse.

@marcelericloiselle So sorry about that.

After finding the RSA encryption length limitation. We will be using an hybride AES and RSA encryption.

1. Randomly generate a AES key and use it to encrypt the data

2. Encrypt the AES key using an RSA pubic key

3. Send both the ASE key and the encrypted data

Unfortunately, this library does not support RSA. Elliptical Curves (EC) is supported though.

@marcelericloiselle
Copy link
Author

Thank you very much for you help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants