Function
| Static Public Summary | ||
| public |
|
|
| public |
decryptFileBlock(data$: *, privateKeyPEM: *): * |
|
| public |
decryptImage(data$: string, privateKeyPEM: string): Promise<string> |
|
| public |
decryptPrivateKey(privateKey$: *, password: *): * |
|
| public |
encryptFileBlock(keyIV: *, block: *): * |
|
| public |
encryptPrivateKey(privateKeyPEM: string, password: string): Promise<string> Encrypts the user's raw private key with their password. |
|
| public |
|
|
| public |
|
|
| public |
generateAuthorizationHeaders(method: *, path: *, session: *): * |
|
| public |
generateKeyIV(): * |
|
| public |
generateKeyPair(): * |
|
| public |
generatePasswordHash(password: string): Promise<string> |
|
Static Public
public decryptComment(comment$: string, envelope: string, privateKeyPEM: string): Promise<string> source
import decryptComment from '@pageproof/sdk/src/crypto/decryptComment.js'public decryptFileBlock(data$: *, privateKeyPEM: *): * source
import decryptFileBlock from '@pageproof/sdk/src/crypto/decryptFileBlock.js'Params:
| Name | Type | Attribute | Description |
| data$ | * | ||
| privateKeyPEM | * |
Return:
| * |
public decryptImage(data$: string, privateKeyPEM: string): Promise<string> source
import decryptImage from '@pageproof/sdk/src/crypto/decryptImage.js'public decryptPrivateKey(privateKey$: *, password: *): * source
import decryptPrivateKey from '@pageproof/sdk/src/crypto/decryptPrivateKey.js'Params:
| Name | Type | Attribute | Description |
| privateKey$ | * | ||
| password | * |
Return:
| * |
public encryptFileBlock(keyIV: *, block: *): * source
import encryptFileBlock from '@pageproof/sdk/src/crypto/encryptFileBlock.js'Params:
| Name | Type | Attribute | Description |
| keyIV | * | ||
| block | * |
Return:
| * |
public encryptPrivateKey(privateKeyPEM: string, password: string): Promise<string> source
import encryptPrivateKey from '@pageproof/sdk/src/crypto/encryptPrivateKey.js'Encrypts the user's raw private key with their password.
public envelopeSeal(secret: string, publicKeyPEMs: Array<string>): Promise<string> source
import {envelopeSeal} from '@pageproof/sdk/src/crypto/envelopes.js'public envelopeUnseal(envelope: string, privateKeyPEM: string): Promise<{key: string, iv: string}>{key:> source
import {envelopeUnseal} from '@pageproof/sdk/src/crypto/envelopes.js'public generateAuthorizationHeaders(method: *, path: *, session: *): * source
import generateAuthorizationHeaders from '@pageproof/sdk/src/crypto/generateAuthorizationHeaders.js'Params:
| Name | Type | Attribute | Description |
| method | * | ||
| path | * | ||
| session | * |
Return:
| * |
public generateKeyIV(): * source
import generateKeyIV from '@pageproof/sdk/src/crypto/generateKeyIV.js'Return:
| * |
public generateKeyPair(): * source
import generateKeyPair from '@pageproof/sdk/src/crypto/generateKeyPair.js'Return:
| * | Promise<KeyPair> |