Skip to content

Instantly share code, notes, and snippets.

@jbdatko
jbdatko / totp.c
Last active March 22, 2017 19:40 — forked from syzdek/totp.c
/*
* TOTP: Time-Based One-Time Password Algorithm
* Copyright (c) 2015, David M. Syzdek <david@syzdek.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright