function to create One Time Passwords (OTP)

Pierre Sahores sc at sahores-conseil.com
Mon Jul 7 20:01:13 EDT 2014


So amazingly elegant ! Thanks for sharing this, Matthias ;D

Le 8 juil. 2014 à 00:58, Matthias Rebbe | M-R-D <matthias_livecode_150811 at m-r-d.de> a écrit :

> Hi,
> i don´t know if this of use for someone, but here is a function, which creates a one time password (OTP). 
> There are many devices out there (like routers) which offer one time password authentication for example for remote vpn dial in e.g. Draytek Vigor Routers.
> 
> function OTP pPin,pSecret
>   put the seconds into tTime
>   put char 1 to -2 of tTime into tTime
>   put tTime & pSecret & pPin into tString
>   put md5digest(tString) into tString
>   get binarydecode("H6",tString,tOTP)
>   return tOTP
> end OT
> 
> Regards,
> 
> Matthias
> 
> 
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com





More information about the use-livecode mailing list