This is a migrated thread and some comments may be shown as answers.

using bcrypt

2 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Benjamin
Top achievements
Rank 1
Benjamin asked on 05 May 2015, 03:46 PM

Hello,

 Is there a way to use bcrypt inside of a nativescrypt app?

I'm using https://www.npmjs.com/package/bcryptjs that depends on bcrypt from node.js

but it's unable to find it even after I install the bcrypt module manually.

 Thanks,

Benny.

2 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 08 May 2015, 09:46 AM
Hi Benny,

The feature of using NPM modules is a really important one for us and we are doing our best to having it as soon as possible, but it still not here.

I am not sure if bcrypt.js has native bindings for iOS or Android though. If these exist, however, you can use the workaround of copying the bcrypt.js file from the node_modules/bcrypt folder under a lib folder of your application and "require"-int it in your code. Please note, that you will need to copy the dependencies as well (bindings.js).

Regards,
Erjan Gavalji
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Benjamin
Top achievements
Rank 1
answered on 10 May 2015, 06:18 AM
Thanks Erjan
 
Tags
General Discussions
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Benjamin
Top achievements
Rank 1
Share this question
or