<p>Codepen Example: <a href="http://codepen.io/satoshinakamoto/pen/ObGwXy?editors=1010" rel="nofollow noreferrer">http://codepen.io/satoshinakamoto/pen/ObGwXy?editors=1010</a></p>

<p>Yes, you can generate the nxt/ardor address by using the following function call: </p>

<pre><code>NRS.getAccountId('asdf'); //Generates the

NRS.convertNumericToRSAccountFormat(NRS.getAccountId('asdf')); //Converts that ID to RS (reed solomon) format
</code></pre>

<p>Found in html/ui/js/nrs.encryption.js</p>

<p><a href="https://i.sstatic.net/ldeQe.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ldeQe.png" alt="enter image description here"></a></p>

<p>You will need the following html setup and js files to generate nxt addresses without the need to be online:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
&lt;/head&gt;
&lt;body&gt;

  &lt;h2&gt;Welcome&lt;/h2&gt;


    &lt;script src="js/3rdparty/jquery-2.2.0.min.js"&gt;&lt;/script&gt;



    &lt;script src="js/3rdparty/jsbn.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/3rdparty/jsbn2.js" type="text/javascript"&gt;&lt;/script&gt;

    &lt;script src="js/util/extensions.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/util/converters.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/util/nxtaddress.js" type="text/javascript"&gt;&lt;/script&gt;

    &lt;script src="js/crypto/curve25519.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/crypto/3rdparty/cryptojs/sha256.js" type="text/javascript"&gt;&lt;/script&gt;


    &lt;script src="js/nrs.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/nrs.util.js" type="text/javascript"&gt;&lt;/script&gt;
    &lt;script src="js/nrs.encryption.js" type="text/javascript"&gt;&lt;/script&gt;





    &lt;script&gt;

    $(document).ready(function() {


      hello = NRS.convertNumericToRSAccountFormat(NRS.getAccountId('ahmin'));   

      $('body').append(hello);


    });

    &lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

CC BY-SA 3.0
2016-12-22T20:00:43.380Z
2016-12-22T22:23:25.853Z
2016-12-22T22:23:25.853Z
Patoshi パトシ
<p>I'm looking for a way to generate an nxt/ardor address using only a javascript library and without having to be online. Is there a js library that can generate a nxt/ardor account by passing in the secret passphrase as a parameter?</p>

<nxt><ardor>
How do you generate a NXT / Ardor address using javascript only?
Patoshi パトシ
# How do you generate a NXT / Ardor address using javascript only?

(Asked by: username_0 on 2016-12-22)

I'm looking for a way to generate an nxt/ardor address using only a javascript library and without having to be online. Is there a js library that can generate a nxt/ardor account by passing in the secret passphrase as a parameter?

**Tags:** nxt, ardor


---

## 1 answers

### Answer by username_0 on 2016-12-22. Score: 1

Codepen Example: <http://codepen.io/satoshinakamoto/pen/ObGwXy?editors=1010>

Yes, you can generate the nxt/ardor address by using the following function call:

```
NRS.getAccountId('asdf'); //Generates the

NRS.convertNumericToRSAccountFormat(NRS.getAccountId('asdf')); //Converts that ID to RS (reed solomon) format

```

Found in html/ui/js/nrs.encryption.js

[![enter image description here](https://i.sstatic.net/ldeQe.png)](https://i.sstatic.net/ldeQe.png)

You will need the following html setup and js files to generate nxt addresses without the need to be online:

```
<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
</head>
<body>

  <h2>Welcome</h2>

    <script src="js/3rdparty/jquery-2.2.0.min.js"></script>

    <script src="js/3rdparty/jsbn.js" type="text/javascript"></script>
    <script src="js/3rdparty/jsbn2.js" type="text/javascript"></script>

    <script src="js/util/extensions.js" type="text/javascript"></script>
    <script src="js/util/converters.js" type="text/javascript"></script>
    <script src="js/util/nxtaddress.js" type="text/javascript"></script>

    <script src="js/crypto/curve25519.js" type="text/javascript"></script>
    <script src="js/crypto/3rdparty/cryptojs/sha256.js" type="text/javascript"></script>

    <script src="js/nrs.js" type="text/javascript"></script>
    <script src="js/nrs.util.js" type="text/javascript"></script>
    <script src="js/nrs.encryption.js" type="text/javascript"></script>

    <script>

    $(document).ready(function() {

      hello = NRS.convertNumericToRSAccountFormat(NRS.getAccountId('ahmin'));   

      $('body').append(hello);

    });

    </script>

</body>
</html>

```


---

