Форум Pawn.Wiki - Воплоти мечту в реальность!: TOTP Plugin - Форум Pawn.Wiki - Воплоти мечту в реальность!

Перейти к содержимому

Страница 1 из 1
  • Вы не можете создать новую тему
  • Вы не можете ответить в тему

TOTP Plugin Оценка: -----

#1
Пользователь офлайн   Макс 

  • Местный
  • Вставить ник
  • Раскрыть информацию
TOTP plugin v1.0.1
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);
}


Скачать

0

Поделиться темой:


Страница 1 из 1
  • Вы не можете создать новую тему
  • Вы не можете ответить в тему

1 человек читают эту тему
0 пользователей, 1 гостей, 0 скрытых пользователей


Яндекс.Метрика