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

JS encryption method compatible with simple_decrypt #7

Open
geotheory opened this issue Apr 6, 2018 · 2 comments
Open

JS encryption method compatible with simple_decrypt #7

geotheory opened this issue Apr 6, 2018 · 2 comments

Comments

@geotheory
Copy link

Not really your problem, but for some users this is the other half of the equation..

I wonder if you can offer any advice on any workflow to replicate the simple_encrypt step with a remote client browser using just javascript? I've been looking at various libraries but can't figure out the flow to use a key generated in sodium..

@jeroen
Copy link
Member

jeroen commented Apr 6, 2018

I think the web crypto standards implemented in browsers only support NIST curves. So you need the R package openssl to work with those on the other end.

I found this website very useful: https://github.com/diafygi/webcrypto-examples . All of these are implemented in the R package openssl as well.

Also have a look at the jose package which wraps openssl to implement some of the new json based formats jwt and jwk in R.

@dirkschumacher
Copy link
Contributor

@geotheory take a look at tweetnacl. It runs in the browser and should be compatible.

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

3 participants