定制 lganee/trusted-timestamps 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lganee/trusted-timestamps

最新稳定版本:1.1.2

Composer 安装命令:

composer require lganee/trusted-timestamps

包简介

Imported from https://d-mueller.de/blog/dealing-with-trusted-timestamps-in-php-rfc-3161/

README 文档

README

Packaging of https://d-mueller.de/blog/dealing-with-trusted-timestamps-in-php-rfc-3161/

Install

Install with composer

composer require lganee/trusted-timestamps ~1.0

Usage

Timestamp a file (certified)

NOTE: $tsa_url = url of your Timestamp Authority you can find free TSA ex: https://gist.github.com/Manouchehri/fd754e402d98430243455713efada710

$requestFile = TrustedTimestamps::createRequestfile($sha1);
$signature = TrustedTimestamps::signRequestfile($requestFile, $tsa_url);
file_put_contents($signature_filename, base64_decode($signature['response_string']));

Get timestamp (datetime) from a signature file

$content64 = base64_encode(file_get_contents($signature_filename));
$timestamp = TrustedTimestamps::getTimestampFromAnswer($content64);

统计信息

  • 总下载量: 13.22k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-30