using bcrypt

Thread is closed for posting
3 posts, 0 answers
  1. Benny
    Benny avatar
    15 posts
    Member since:
    Apr 2015

    Posted 05 May 2015 Link to this post

    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. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 08 May 2015 Link to this post

    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.

     
  3. Benny
    Benny avatar
    15 posts
    Member since:
    Apr 2015

    Posted 10 May 2015 in reply to Erjan Gavalji Link to this post

    Thanks Erjan
     
Back to Top