Gathering detailed insights and metrics for @types/chloride
Gathering detailed insights and metrics for @types/chloride
Gathering detailed insights and metrics for @types/chloride
Gathering detailed insights and metrics for @types/chloride
The repository for high quality TypeScript type definitions.
npm install @types/chloride
Typescript
Module System
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,041 Stars
89,745 Commits
30,435 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 15, 2025
Latest Version
2.4.2
Package Id
@types/chloride@2.4.2
Unpacked Size
6.44 kB
Size
2.00 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
npm install --save @types/chloride
This package contains type definitions for chloride (https://github.com/ssb-js/chloride).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chloride.
1/// <reference types="node" />
2
3export interface KeyPair {
4 publicKey: Buffer;
5 secretKey: Buffer;
6}
7// *** hash ***
8// sha512
9export function crypto_hash(plainText: Buffer): Buffer;
10// sha256
11export function crypto_hash_sha256(plainText: Buffer): Buffer;
12
13/** Signatures */
14export function crypto_sign_keypair(): KeyPair;
15// seed's length is 24 bytes
16export function crypto_sign_seed_keypair(seed: Buffer): KeyPair;
17// return concat( {the signature of the message}, {message} ),
18// if just only need signature, use crypto_sign_detached instead
19export function crypto_sign(message: Buffer, secretKey: Buffer): Buffer;
20export function crypto_sign_open(signed: Buffer, publicKey: Buffer): Buffer;
21export function crypto_sign_detached(message: Buffer, secretKey: Buffer): Buffer;
22export function crypto_sign_verify_detached(signed: Buffer, message: Buffer, publicKey: Buffer): Buffer;
23
24// *** Box ***
25export function crypto_box_keypair(): KeyPair;
26export function crypto_box_seed_keypair(seed: Buffer): KeyPair;
27export function crypto_box_easy(data: Buffer, nonce: Buffer, publicKey: Buffer, secretKey: Buffer): Buffer;
28export function crypto_box_open_easy(boxed: Buffer, nonce: Buffer, publicKey: Buffer, secretKey: Buffer): Buffer;
29
30// *** SecretBox ***
31export function crypto_secretbox_easy(plainText: Buffer, nonce: Buffer, key: Buffer): Buffer;
32export function crypto_secretbox_open_easy(encrypted: Buffer, nonce: Buffer, key: Buffer): Buffer;
33
34// *** random bytes ***
35export function randombytes(buf: Buffer): void;
36
37// *** auth ***
38export function crypto_auth(data: Buffer, key: Buffer): Buffer;
39export function crypto_auth_verify(signed: Buffer, data: Buffer, key: Buffer): boolean;
40
41// *** scalar multiplication ***
42export function crypto_scalarmult(secretKey: Buffer, publicKey: Buffer): Buffer;
43
44// *** conversions ***
45export function crypto_sign_ed25519_sk_to_curve25519(secretKey: Buffer): Buffer;
46export function crypto_sign_ed25519_pk_to_curve25519(publicKey: Buffer): Buffer;
47
These definitions were written by Zhiyuan Man.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-14
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