title: How to convert to byte array in React
body: <p>I have a form field of type password. I want the entered password to be converted to byte array. How can I do it using react?The format of form field is as below.</p>
  
  <pre><code>&lt;Form.Input
                  required
                  label="Account Password"
                  type="password"
                  value={this.state.password}
                  onChange={this.handleChangePassword}
                  /&gt;
  </code></pre>