(Note that all of the inputs to scrypt except the password are hard-coded; you must modify validate_parameters in server.py if you wish to change any of them.)
Dev Deployment
There is a development instance of this service running in the moz-svc-dev
AWS environment, and available for testing at:
https://scrypt-accounts.dev.lcip.org
This deployment is managed using awsboxen. To push a new version of the
code, simply do:
gt; awsboxen deploy scrypt-dev-lcip-org
You can also use awsboxen to spin up a private server stack; just make sure
to set the DNSPrefix deploy parameter so that it doesn’t conflict with the
default deployment. For example:
Scrypt Helper Service
A web service that provides the [scrypt key derivation function] scrypt for future [Firefox Services] services.
Prerequisites
piplibssl-devon Ubuntu/Debian,openssl-develon Red Hat,brew install opensslon Mac OS X).Installation
Clone the
scrypt-helperrepo in theenvdirectory. Inscrypt-helper:You can deactivate the virtual environment with
deactivate.Testing
With the virtual environment activated, run this:
Running
Then make an HTTP POST with a JSON body of the form:
to:
which will return:
Testing with curl
Output:
(Note that all of the inputs to scrypt except the password are hard-coded; you must modify validate_parameters in server.py if you wish to change any of them.)
Dev Deployment
There is a development instance of this service running in the moz-svc-dev AWS environment, and available for testing at:
This deployment is managed using awsboxen. To push a new version of the code, simply do:
You can also use awsboxen to spin up a private server stack; just make sure to set the DNSPrefix deploy parameter so that it doesn’t conflict with the default deployment. For example:
When you’re finished with it, tear down the stack like so: