-
Notifications
You must be signed in to change notification settings - Fork 1
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
What is the algorithm used? #1
Comments
safer's Sodium's bindings for nodejs. Hope this helps. |
I checked node-sodium but symmetric encryption is missing. Then I looked at sodium-native and it is a bit to low levell when you just starting with crypto and I can't find symmetric encryption. But I think it´s crypto_stream(cipher, nonce, key) that is the symmetric version. For example which low level function will match your encrypt_string(string, key)? JSNacl looks promising https://github.com/tonyg/js-nacl. I have found this symmetric function, but they use nonce:
I am a little bit suspicious that xor will use another algorithm than XSalsa20. How do I add a nonce in your solution? Maybe it´s not important if nonce is added behind the sceen. So far I have managed to do a simple hashing of a string in nodejs. Then I hash it in R and compare it. |
For the nounce part: This nounce is used all though by
( essentially the hash of the string 'nounce' ) About the function matching Hope this helps. |
Ok I managed to encrypt in nodejs and then decrypt it in R. But I did not managed to use safer because I could not convert the nodejs hex strings to R strings (whatever this is). Instead I managed to convert the hex strings to raw vectors and then use R sodium. Thanks for the support anyhow! |
Use functions |
Hi, great package, but what is the crypto algorithm used and how do you select one specific algorithm to use. I am planning to first encrypt a json object in Nodejs and then decrypt it in R. But then I need to know which algorithm I use AES, DES, Bcrypt etc.. Or is it curve25519?
I am trying to encrypt in nodejs and then decrypt it in R with symetric encryption.
The text was updated successfully, but these errors were encountered: