🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@cuser/crypto

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cuser/crypto

cuser crypto utilities

latest
Source
npmnpm
Version
0.0.36
Version published
Maintainers
1
Created
Source

cuser logo

Status

codecov npm npm-downloads

@cuser/crypto

Index

Classes

Variables

Functions

Variables

pki

pki: any

Defined in keygen.js:6

Functions

createBearer

ConstcreateBearer(secret: string, opts: any): CoreCryptoBearer

Defined in bearer.js:45

Parameters:

NameTypeDescription
secretstring
optsany

Returns: CoreCryptoBearer

createHash

ConstcreateHash(secret: string, encoding?: string): Buffer & string

Defined in hash.js:9

Returns a 32 bytes fixed length hash from a secret word

Parameters:

NameTypeDefault value
secretstring-
encodingstring"buffer"

Returns: Buffer & string

createKeygen

ConstcreateKeygen(node: IPFSAPI | Promise<IPFSAPI>, secret: string, opts: CuserCryptoKeygenOptions): CuserCryptoKeygen

Defined in keygen.js:55

Parameters:

NameType
nodeIPFSAPI | Promise<IPFSAPI>
secretstring
optsCuserCryptoKeygenOptions

Returns: CuserCryptoKeygen

Class: CoreCryptoBearer

Hierarchy

  • CoreCryptoBearer

Index

Constructors

Constructors

constructor

+ new CoreCryptoBearer(secret: string, opts: any): CoreCryptoBearer

Defined in bearer.js:14

Parameters:

NameTypeDescription
secretstring
optsany

Returns: CoreCryptoBearer

Class: CuserCryptoCypher

Hierarchy

  • CuserCryptoCypher

Class: CuserCryptoKeygen

Generate rsa pair keys from ipfs

Hierarchy

  • CuserCryptoKeygen

Index

Constructors

Methods

Constructors

constructor

+ new CuserCryptoKeygen(node: IPFSAPI | Promise<IPFSAPI>, secret: string, opts: CuserCryptoKeygenOptions): CuserCryptoKeygen

Defined in keygen.js:16

Parameters:

NameTypeDescription
nodeIPFSAPI | Promise<IPFSAPI>
secretstring
optsCuserCryptoKeygenOptions

Returns: CuserCryptoKeygen

Methods

generateKeys

generateKeys(key: string): Promise<{ privateKey: any ; publicKey: any }>

Defined in keygen.js:34

Parameters:

NameType
keystring

Returns: Promise<{ privateKey: any ; publicKey: any }>

FAQs

Package last updated on 24 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts