totp:RFC6238 TOTP在纯PostgreSQL plpgsql中的实现

时间:2021-03-20 02:28:26
【文件属性】:
文件名称:totp:RFC6238 TOTP在纯PostgreSQL plpgsql中的实现
文件大小:220KB
文件格式:ZIP
更新时间:2021-03-20 02:28:26
PLpgSQL 托普 纯PostgreSQL plpgsql中的TOTP实现 此扩展提供了HMAC基于时间的一次性密码算法(TOTP),该方法在RFC 6238/4226中指定为纯plpgsql函数。 用法 生成 SELECT totp . generate ( ' mysecret ' ); -- you can also specify totp_interval, and totp_length SELECT totp . generate ( ' mysecret ' , 30 , 6 ); 在这种情况下,生成长度为6的TOTP代码 013438 验证 SELECT totp . verify ( ' mysecret ' , ' 765430 ' ); -- you can also specify totp_interval, and totp_length SELECT totp . ver
【文件预览】:
totp-master
----.travis.yml(984B)
----bin()
--------install.sh(463B)
----skitch.json(60B)
----package.json(558B)
----extensions()
--------@launchql()
----readme.md(3KB)
----.yarnrc(102B)
----jest.config.js(180B)
----bootstrap-roles.sql(1KB)
----LICENSE(1KB)
----lerna.json(394B)
----.npmignore(120B)
----.eslintrc.js(1KB)
----docker-compose.yml(352B)
----.gitignore(120B)
----Makefile(165B)
----yarn.lock(452KB)
----.editorconfig(188B)
----packages()
--------totp()
----.gitattributes(28B)
----babel.config.js(83B)
----.vscode()
--------settings.json(331B)

网友评论