Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <openssl/rand.h>
  4.  
  5. int main(int argc, char **argv) {
  6.  
  7. unsigned char key[16];
  8.  
  9. if (!RAND_bytes(key, sizeof key)) {
  10. return EXIT_FAILURE;
  11. }
  12.  
  13. printf("%s", key)
  14.  
  15. return 0;
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement