Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <openssl/evp.h>
- int main(int argc, char *argv[])
- {
- char key[32];
- int i;
- PKCS5_PBKDF2_HMAC_SHA1("network password", strlen("network password"), "network name", strlen("network name"), 4096, 32, key);
- for (i = 0; i < 32; i++) {
- printf("%02hhx", key[i]);
- }
- printf("\n");
- }
Add Comment
Please, Sign In to add comment