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

how to use it in vue? #104

Closed
zhongzi opened this issue Sep 28, 2017 · 3 comments
Closed

how to use it in vue? #104

zhongzi opened this issue Sep 28, 2017 · 3 comments

Comments

@zhongzi
Copy link

zhongzi commented Sep 28, 2017

can u give a example for me ? thanks !
(1) npm install libsodium-wrappers
(2) use in Vue project like:
var sodium = require('libsodium-wrappers')
console.log(sodium.to_hex(sodium.crypto_generichash(64, 'test')))
(3) npm run dev

then i got:

This dependency was not found:

  • fs in ./~/.0.5.4@libsodium/dist/modules/libsodium.js

To install it, you can run: npm install --save fs

Listening at http://localhost:8080


it's useless to install fs module

any body help me ?
thanks!

@jedisct1
Copy link
Owner

You probably need "libsodium" in addition to "libsodium-wrappers".

@jedisct1
Copy link
Owner

Superseded by #105

@zhongzi
Copy link
Author

zhongzi commented Sep 29, 2017

Anyway,Thank you all the same.
Great projects.

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