[Plugin] 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 Gооgle in the Gооgle Authenticator.

With this plugin, you can protect your server accounts of subsidiary protection, providing the One-time Password on the user side using Gооgle 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.

Natives

Code:
native Goo gleAuthenticatorCode(key[], tm); //anti-advertising removes the word Gооgle. Remove the space
The parameters:
  • key[] - secret key
  • tm - UNIXTIME
Example

Code:
#include <a_samp>
#include <TOTP>

main()
{
	new code = Goo gleAuthenticatorCode("3ADXVY3HXVYX6XWZ", gettime()); //anti-advertising removes the word Gооgle. Remove the space
	printf("CODE: %06d", code);
}
Downloads

GitHub repository:

https://github.com/GamesDV/TOTP

Pre-built binaries for Linux and Windows (releases page):

https://github.com/GamesDV/TOTP/releases
Reply


Messages In This Thread
TOTP Plugin - by Igorek - 07.01.2016, 14:02
Re: TOTP Plugin - by Neutralneu - 07.01.2016, 14:05
Re: TOTP Plugin - by Elegy - 07.01.2016, 14:52
Re: TOTP Plugin - by Vince - 07.01.2016, 15:05
Re: TOTP Plugin - by ikkentim - 07.01.2016, 19:12
Re: TOTP Plugin - by Mauzen - 07.01.2016, 21:11
Re: TOTP Plugin - by Igorek - 08.01.2016, 15:19
Re: TOTP Plugin - by MerryDeer - 23.08.2016, 04:51
Re: TOTP Plugin - by JaydenJason - 23.08.2016, 11:45
Re: TOTP Plugin - by Scranton - 23.08.2016, 13:16
Re: TOTP Plugin - by JaydenJason - 23.08.2016, 14:40
Re: TOTP Plugin - by izeatfishz - 23.08.2016, 21:18
Re: TOTP Plugin - by Scranton - 24.08.2016, 08:24
Re: TOTP Plugin - by MerryDeer - 24.08.2016, 11:17
Re: TOTP Plugin - by Igorek - 28.08.2016, 16:16
Re: TOTP Plugin - by MerryDeer - 28.08.2016, 16:57
Re: TOTP Plugin - by JaydenJason - 30.08.2016, 14:22
Re: TOTP Plugin - by Igorek - 28.09.2017, 07:21
Re: TOTP Plugin - by Crystallize - 28.09.2017, 14:13
Re: TOTP Plugin - by DeepCode - 30.11.2017, 13:11
Re: TOTP Plugin - by ZiGGi - 30.11.2017, 15:09
Re: TOTP Plugin - by DeepCode - 01.12.2017, 20:28
Re: TOTP Plugin - by Igorek - 02.12.2017, 10:55
Re: TOTP Plugin - by DeepCode - 04.12.2017, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)