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

Implement Symmetric and Asymmetric APIs #7

Open
alanssitis opened this issue Mar 31, 2024 · 3 comments
Open

Implement Symmetric and Asymmetric APIs #7

alanssitis opened this issue Mar 31, 2024 · 3 comments

Comments

@alanssitis
Copy link

Hi @lpil!

I want to contribute and add encryption support to the standard library. I am still new to gleam and would appreciate some guidance as it seems to be a pretty big undertaking. I will use this issue to track my progress and write down how I build this API.

Before I start, here are a few questions I had:

  • One main issue, is there a proper way to handle algorithms that are supported by one platform (erlang crypto) and not by the other (WebCrypto)?
  • Should we separate asymmetric and symmetric encrypt?
@lpil
Copy link
Member

lpil commented Apr 1, 2024

Hello!

If we're unable to support both platforms then we'll have to defer that addition until we can.

I don't have any particular opinions on the scope on this library beyond wanting to cover the most generally useful crypto bits and bobs one might want in a typical application.

Thank you.

@alanssitis
Copy link
Author

Sorry, I wasn't clear in my question, but if one platform supports only RSA encryption while the other supports many more, should I just implement RSA?

@lpil
Copy link
Member

lpil commented Apr 1, 2024

All functionality must support both targets, aye

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