ADD: new pwdgen algo, (thanks @jackfagner) who did a great job figuring it out. Read his blog.

ref.   https://github.com/jackfagner/NfcKey/blob/master/NfcKeyC.c
This commit is contained in:
iceman1001 2017-11-25 08:48:36 +01:00
commit 0815f19389
3 changed files with 91 additions and 6 deletions

View file

@ -26,6 +26,9 @@
#ifndef ROTR
# define ROTR(x,n) (((uintmax_t)(x) >> (n)) | ((uintmax_t)(x) << ((sizeof(x) * 8) - (n))))
#endif
#ifndef ROTL
# define ROTL(x,n) (((uintmax_t)(x) << (n)) | ((uintmax_t)(x) >> ((sizeof(x) * 8) - (n))))
#endif
#ifndef MIN
# define MIN(a, b) (((a) < (b)) ? (a) : (b))