title: How can I use Crypto built-in module from Node.JS in React Native Project?
body: <p>I'm working on a <code>React Native project</code> and I need to implement authentication, with an encrypted password.</p>
  
  <p>I want to use <code>library Bcrypt</code> but I have an issue. <code>Bcrypt</code> requires the <code>Crypto module</code>, which was a third-part library, but now it is a built-in module in <code>Node.js</code>.</p>
  
  <p>When I try to use Bcrypt with <code>const bcrypt = require('bcrypt')</code>, it throws an error :</p>
  
  <blockquote>
    <p>Unable to resolve module 'crypto' from 'node_modules/bcrypt/...'</p>
  </blockquote>
  
  <p>I am using :</p>
  
  <ul>
  <li>Node.js v13.0.1</li>
  <li>NPM v6.12.0</li>
  <li>react-native-cli v2.0.1</li>
  <li>react-native v0.61.3</li>
  <li>react v16.9.0</li>
  </ul>
  
  <p>To manage this error, I went to <code>Node.js</code> documentation and tried the solution to know if the <code>Crypto</code> built-in module is available or not but it throws the same error. </p>
  
  <p>Maybe I don't understand clearly what is a built-in module, <strong>is that a module which is included into the Node.js installer</strong>, so I don't have any NPM install crypto to do?</p>
  
  <p>If it is the case, does anyone have an idea about <strong>why I can't use it in my project</strong>?</p>
  
  <p>I also tried the <code>rn-nodeify module</code>, with <code>react-native-bcrypt</code> and <code>react-native-crypto</code>, but in each case some packages weren't reached, like <code>stream</code>, <code>VM</code>, <code>fs</code>, etc.</p>
  
  <p><strong>Do you encountered the same problem and solved it?</strong></p>