Send Voicemail | EnAcCiOn
Contact me using vCita | EnAcCiOn
Contact Form & Online Scheduling by vCita
Contact me using vCita | EnAcCiOn
Meeting Scheduler Powered by vCita
lunes, 17 de agosto de 2015
Re: Generating stoken in PHP
Good morning, I managed to solve the insurance problem by modifying a little token my code: $siteSecret = "{MY_KEY_SITE_SECRET}"; $key = substr(sha1($siteSecret, true), 0, 16); $plaintext = json_encode(array( 'session_id' => ZFKiller_String::makeRandString(16), 'ts_ms' => round(microtime(true) * 1000), )); $pad = 16 - (strlen($plaintext) % 16); $plaintext .= str_repeat(chr($pad), $pad); $ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plaintext, MCRYPT_MODE_ECB); $secureToken = rtrim(strtr(base64_encode($ciphertext), '+/', '-_'), '='); I used this as a base class that slushie created: http://bit.ly/1hkXaCL -- You received this message because you are subscribed to the Google Groups "reCAPTCHA" group. To unsubscribe from this group and stop receiving emails from it, send an email to recaptcha+unsubscribe@googlegroups.com. To post to this group, send email to recaptcha@googlegroups.com. Visit this group at http://bit.ly/1dkFnYd. For more options, visit http://bit.ly/P65DvS.
Suscribirse a:
Enviar comentarios (Atom)
EnAcCiOn
Contador Web | EnAcCiOn
EnAcCiOn
EnAcCiOn
EnAcCiOn
Blog Archive | EnAcCiOn
-
►
2013
(1429)
- ► septiembre (156)
-
►
2014
(1220)
- ► septiembre (43)
-
▼
2015
(1589)
-
▼
agosto
(244)
-
▼
ago 17
(11)
- Re: reCAPTCHA asking to copy paste code but failing
- IE8 Object doesn't support property or method 'ind...
- ¡EnAcCiOn está listo! Edición del 17 agosto 2015
- Re: Generating stoken in PHP
- Re: IE8 Object doesn't support property or method ...
- Re: Recaptcha 2.0 not working in IE8 onwards
- Re: Recaptcha 2.0 not working in IE8 onwards
- Re: IE8 Object doesn't support property or method ...
- Re: IE8 Object doesn't support property or method ...
- Re: Recaptcha 2.0 not working in IE8 onwards
- Re: reCAPTCHA asking to copy paste code but failing
-
▼
ago 17
(11)
-
▼
agosto
(244)
No hay comentarios:
Publicar un comentario