Gathering detailed insights and metrics for zamanejs
Gathering detailed insights and metrics for zamanejs
Gathering detailed insights and metrics for zamanejs
Gathering detailed insights and metrics for zamanejs
npm install zamanejs
Typescript
Module System
Min. Node Version
Node Version
NPM Version
68.7
Supply Chain
98.9
Quality
82.8
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
2,124
Last Day
2
Last Week
7
Last Month
50
Last Year
1,293
9 Stars
101 Commits
5 Forks
2 Watching
7 Branches
3 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.8
Package Id
zamanejs@2.0.8
Unpacked Size
31.07 kB
Size
8.06 kB
File Count
9
NPM Version
10.5.0
Node Version
20.11.1
Publised On
14 May 2024
Cumulative downloads
Total Downloads
Last day
0%
2
Compared to previous day
Last week
-36.4%
7
Compared to previous week
Last month
85.2%
50
Compared to previous month
Last year
509.9%
1,293
Compared to previous year
1
23
ZamaneJS is a JavaScript implementation of the Zamane timestamping service. It provides a simple and easy-to-use API for interacting with the Zamane service.
I'n theory this is just a basic implementation of RFC3161 but since there are some small changes necessary for Zamane to work, I've decided to create a separate package. See ZamaneFix file for the details.
Zamane is an app written by TUBITAK for Turkish goverment that creates timestamps for given files. These timestamps could be used in court to prove as evidence that file or document existed at the claimed time.
This package is not affiliated with TUBITAK. It is an open-source project and is not responsible for any legal issues that may arise from the use of this package. It is the responsibility of the user to ensure that the use of this package complies with the laws of the country in which it is used.
For any questions or suggestions, you can contact me at my email. Please include [zamane] in the subject line.
You can install ZamaneJS using npm or yarn:
1npm install zamanejs 2# or 3yarn add zamanejs
You need to buy credits in order to timestamp files. But for development and testing purposes you can request sample credentials from TUBITAK.
quoted from source
Zamane test kullanıcısı talep etmek amacıyla Kamu SM (bilgi[at]kamusm.gov.tr)'ye e-posta gönderilmesi gerekmektedir. İlgili e-posta'nın konu kısmında "Zamane test kullanıcı talebi", içeriğinde ise "Kurum adı, kurum vergi kimlik numarası, kurum adresi, kurum sabit telefon, yetkili kişi adı ve soyadı, cep telefonu numarası, yetkili kişi e-posta" bilgilerinin ve Sha-256 veya Sha-512 özet algoritmasından hangisinin istendiğinin yer alması gerekmektedir.
translation
In order to request a time test user, an e-mail should be sent to Kamu SM (bilgi[at]kamusm.gov.tr). "Time test user request" in the subject part of the relevant e-mail, and in the content, "Institution name, corporate tax identification number, institution address, corporate landline phone, authorized person name and surname, mobile phone number, authorized person e-mail" information. and whether Sha-256 or Sha-512 hash algorithm is desired.
please note that Kamu SM might require an email written in Turkish!
Here are the list of issuers for paid credentials. (not the full list or the offical list)
First, import the Zamane
class and create a new instance with your credentials:
1import { Zamane } from 'zamanejs'; 2 3const zamane = new Zamane({ 4 tssAddress: 'http://tzd.kamusm.gov.tr', // goverments sample timestamp server 5 hashAlgorithm: 'SHA-256', // the hash algorithm to use. either 'SHA-256' or 'SHA-512' 6 customerNo: '00000', // your customer number. only contains digits, if not required don't pass it 7 customerPassword: 'a1b2c3d4', // your customer password, if not required don't pass it 8});
You can hash a file using the hashFromPath
method:
1zamane.hashFromPath("example.txt").then(hash => { 2 console.log("File Hash: ", hash); 3});
You can hash a string using the hashFromString
method:
1zamane.hashFromString("Test Contents").then(hash => { 2 console.log("String Hash: ", hash); 3});
You can request a timestamp using the timeStampRequest
method:
1const hash = await zamane.hashFromString("Test Contents"); 2zamane.timeStampRequest(hash).then(timestamp => { 3 console.log("Timestamp: ", timestamp); 4});
ZamaneJS is licensed under the MIT License. See the LICENSE
file for more details.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
27 out of 27 merged PRs checked by a CI test -- score normalized to 10
Reason
9 different organizations found -- score normalized to 10
Details
Reason
no dangerous workflow patterns detected
Reason
update tool detected
Details
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
4 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 5
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
found 4 unreviewed changesets out of 5 -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
0 commit(s) out of 30 and 0 issue activity out of 13 found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Score
Last Scanned on 2024-12-21T04:43:52Z
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More