Fantastic! Congratulations.
- ProcessWire Support Forums
- → Viewing Profile: Posts: netcarver
Community Stats
- Group Members
- Active Posts 428
- Profile Views 2,040
- Member Title Sr. Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Male
-
Location
UK
Posts I've Made
In Topic: Karena Savannah Cramer
06 May 2013 - 01:52 PM
In Topic: 2-factor authentication module
20 March 2013 - 03:39 PM
Hey Alan,
No probs re the docs.
Something you might want to consider: Reducing the number of characters in the output character set (by using the distinct charset) does reduce the strength of the generated token somewhat so you may want to consider increasing the length of your generated tokens to compensate for this -- maybe by using 4 runs of 4 chars.
In Topic: 2-factor authentication module
19 March 2013 - 09:42 PM
Hi Alan,
Try something like this...
$key = CryptoPPP::genKeys(); $key = CryptoPPP::keyToTokenBlocks($key, 4, 3, '-', CryptoPPP::DISTINCT_CHARSET);
That's off the top of my head and untested. You should get three blocks of four chars from the "Distinct charset" (which should be safe as a GET variable) with a dash between the blocks.
You can check the parameters of keyToTokenBlocks here, and here are the characters from the "distinct charset".
In Topic: Captain Hook - ProcessWire Hooks Cheatsheet
05 March 2013 - 05:10 PM
Like, like, like, like, like.
In Topic: Error: Unable to Generate Hash when trying to login into Admin
15 February 2013 - 12:34 AM
Sounds like a bug in is_string() in PHP 5.2.17 or perhaps the string with the leading dollar in it is being interpolated by PHP somehow leading to a string that is shorter than 13 characters. What do you get for this...
$hash = '$2'; // Make sure you use single quotes here please.
if (!is_string($hash)) {
echo "Buggy";
} else {
echo "Interpolation maybe?";
}
...?
Edited to add: Ignore the above, I posted at about 5am after an all-night bug hunt.
Possibly unrelated: there are reports of Crypt() differences coming in between different PHP versions. Sorry I don't have time to look at this more but very busy at the moment.
- ProcessWire Support Forums
- → Viewing Profile: Posts: netcarver
- Privacy Policy





Find content