Hacker GitHub

← All repos

pyramation/totp

View on GitHub ↗ ★ 118 PLpgSQL

RFC6238 TOTP implementation in pure PostgreSQL plpgsql

6 mentions on Hacker News by 3 people: 1 story, 5 comments · first 2021-02-25 · latest 2021-02-25

Mentions per year 6 mentions · busiest year 2021 (6)
20082026
  1. https://github.com/pyramation/totp/blob/master/packages/totp... yes in the notes of the source here The first TOTP implementation I wrote was here was much less efficient, literally the algorithm in steps:…
  2. …the totp.random_base32 function[2] is not a cryptographically secure random number generator. [1]: https://github.com/pyramation/totp/blob/7ec3104/packages/tot... [2]: https://github.com/pyramation/totp/blob/7ec3104/packages/tot...
  3. Author here. Here is the full code if anyone is interested: https://github.com/pyramation/totp/blob/master/packages/totp...
  4. The file you're pointing to is not the full extension, here it is: https://github.com/pyramation/totp/blob/master/packages/totp...
  5. The author's main SQL code seems to be in this file: https://github.com/pyramation/totp/blob/master/packages/totp... For comparison, these are my relatively short TOTP implementations in {TypeScript, Python, Java, Rust, C++}:…
  6. ▲ 68
    RFC6238 TOTP implementation in pure PostgreSQL
    story by pyramation · 2021-02-25 · 38 comments