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
20082026
-
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:…
comment by pyramation · 2021-02-25 · in RFC6238 TOTP implementation in pure PostgreSQL -
…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...
comment by susam · 2021-02-25 · in RFC6238 TOTP implementation in pure PostgreSQL -
Author here. Here is the full code if anyone is interested: https://github.com/pyramation/totp/blob/master/packages/totp...
comment by pyramation · 2021-02-25 · in RFC6238 TOTP implementation in pure PostgreSQL -
The file you're pointing to is not the full extension, here it is: https://github.com/pyramation/totp/blob/master/packages/totp...
comment by pyramation · 2021-02-25 · in RFC6238 TOTP implementation in pure PostgreSQL -
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++}:…
comment by nayuki · 2021-02-25 · in RFC6238 TOTP implementation in pure PostgreSQL -
▲ 68
RFC6238 TOTP implementation in pure PostgreSQLstory by pyramation · 2021-02-25 · 38 comments