btcollider/bf/scrypt-jane/example.c

13 lines
244 B
C
Raw Normal View History

2018-04-04 13:18:34 +00:00
#include <stdio.h>
#include "scrypt-jane.h"
int main(void) {
unsigned char digest[16];
int i;
scrypt("pw", 2, "salt", 4, 0, 0, 0, digest, 16);
for (i = 0; i < sizeof(digest); i++)
printf("%02x, ", digest[i]);
printf("\n");
return 0;
}