- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
#include <stdio.h> | |
#include <inttypes.h> | |
#include <math.h> | |
// Function, which calculates N, p and r from opslimit and memslimit copied from | |
// libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c | |
int pickparams(unsigned long long opslimit, const size_t memlimit, | |
uint32_t *const N_log2, uint32_t *const p, uint32_t *const r) { | |
unsigned long long maxN; | |
unsigned long long maxrp; |
Checkout the blog post for the whole story.
Setup Bower and install components:
npm install -g bower
bower install
Before deploying to Heroku, switch to the multi buildpack:
Because loading gems can take longer than you think
Now available as a gem - get it here