Slip Posted August 30, 2008 Share Posted August 30, 2008 Hi, I want to create a text file that has all the possible combinations of an 8 character code using the alphabet. Creating the text file is not a problem it's the function to go through all the possible combinations that I can't fingure out. I am assuming it would start it like this; AAAAAAAA BAAAAAAA CAAAAAAA ... etc. then ABAAAAAA ACAAAAAA ADAAAAAA And continue through until the end. The file will obviously be quite large as there are 208,827,064,576 combinations (26*26*26*26*26*26*26*26). Any ideas where I would start? I'm thinking for() loops of somekind... Link to comment https://forums.phpfreaks.com/topic/121991-generating-passcodes/ Share on other sites More sharing options...
BlueSkyIS Posted August 30, 2008 Share Posted August 30, 2008 http://php.happycodings.com/Algorithms/code21.html Link to comment https://forums.phpfreaks.com/topic/121991-generating-passcodes/#findComment-629687 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.