<p>I'm building a tool that uses ripple-lib on the client side and ripple-rest on the server side.  For some features, I need the administrator to provide the account secret.</p>

<p>I could prompt the user for both the account ID and the secret.  Instead, I want to prompt for only the secret and calculate the account ID automatically.  That way, I'll always have a valid matching ID and secret.</p>

<p>I'm certain this can be done, as the client at <a href="https://ripple.com/client/#/register" rel="nofollow">https://ripple.com/client/#/register</a> allows you to enter the secret and it does exactly what I'm talking about.</p>

<p>I can't find any documentation as to how it does this.  Does ripple-lib provide an API for calculating the account ID, given the secret?</p>

CC BY-SA 3.0
2014-05-29T16:33:02.790Z
See [my answer to a different question](http://bitcoin.stackexchange.com/a/18880/3364). It describes and links to the process of turning a secret into a key and a Ripple address. Make sure that Ripple secrets are not being sent over non-secure links or to third party servers (e.g. you shouldn't distribute your ripple-lib based tool and expect people to point it to a ripple-rest server you run).
dchapes
CC BY-SA 3.0
2014-05-30T18:09:56.227Z
Thanks for links (although currently, they're all greek to me).  I get that about the secrets.  My finished product may generate new accounts to avoid the passing of any secrets.  For my prototype, I'm simply prompting for both public id and secret.
Dave Cohen
<ripple><ripple-api>
Given secret, learn account details
Dave Cohen
# Given secret, learn account details

(Asked by: username_0 on 2014-05-28)

I'm building a tool that uses ripple-lib on the client side and ripple-rest on the server side. For some features, I need the administrator to provide the account secret.

I could prompt the user for both the account ID and the secret. Instead, I want to prompt for only the secret and calculate the account ID automatically. That way, I'll always have a valid matching ID and secret.

I'm certain this can be done, as the client at <https://ripple.com/client/#/register> allows you to enter the secret and it does exactly what I'm talking about.

I can't find any documentation as to how it does this. Does ripple-lib provide an API for calculating the account ID, given the secret?

**Tags:** ripple, ripple-api

> **Comments:**
> **username_1**: See [my answer to a different question](http://bitcoin.stackexchange.com/a/18880/3364). It describes and links to the process of turning a secret into a key and a Ripple address. Make sure that Ripple secrets are not being sent over non-secure links or to third party servers (e.g. you shouldn't distribute your ripple-lib based tool and expect people to point it to a ripple-rest server you run).  
> **username_0**: Thanks for links (although currently, they're all greek to me).  I get that about the secrets.  My finished product may generate new accounts to avoid the passing of any secrets.  For my prototype, I'm simply prompting for both public id and secret.  

---

## 0 answers

