This plugin allows you to generate one-time passwords based on time (and computing on algorithm based TOTP RFC 6238 ) are also used by Google in the Google Authenticator.
With this plugin, you can protect your server accounts of subsidiary protection, providing the One-time Password on the user side using Google Authenticator and comparing it to the server using this plugin.
The secret key for the user, you can generate and set, for example, in the UCP your WebSite.
Функция
native GoogleAuthenticatorCode(key[], tm); /* Параметры: key[] - секретный ключ tm - UNIXTIME */
Пример использования
#include <a_samp>
#include <TOTP>
main()
{
new code = GoogleAuthenticatorCode("3ADXVY3HXVYX6XWZ", gettime());
printf("CODE: %06d", code);
}
Скачать
Вход
Регистрация
Помощь









