For Raspberry Pi
Updated: spaniakos 2015
This is an example of hot to generate passwords and IVs of varius sizes
- Note
- Tere is a definiton in KEYGEN_config that defined #define analogRead(x) 1, so it has less entropy that Arduino.
#include <KEYGEN.h>
#include "./printf.h"
int main(int argc, char** argv) {
printf_begin();
printf("\n============================================\n");
printf(" Password Generation sample for Arduino/Raspberry pi\n");
printf("============================================\n");
while(1){
char psw_8[8];
char psw_16[16];
char IV_8[8];
char IV_16[16];
printf("\n===========8 char sample for password===========\n");
printf("\n===========16 char sample for password===========\n");
printf("\n===========8 char sample for IV===========\n");
printf("\n===========16 char sample for IV===========\n");
sleep(2);
}
}