Jscu
Extends:
Suite → Jscu
Static Method Summary
Static Public Methods | ||
public static |
Decrypt encrypted object with given keys. |
|
public static |
async encrypt(message: *, keys: *, options: *): Promise<{message: EncryptedMessage}>{message:> Encrypt plaintext object with given keys. |
|
public static |
async generateKey(params: *, passphrase: *, encryptOptions: *): Promise<*> Generate publicKeyPair or sessionKeyObject with js-crypto-utils. |
|
public static |
Import jscu key object |
|
public static |
Signing on a message with given private key's' |
|
public static |
Verify signature here |
Static Public Methods
public static async decrypt(encrypted: *, keys: *, options: *): Promise<{data: *}>{data:> source
Decrypt encrypted object with given keys.
Params:
Name | Type | Attribute | Description |
encrypted | * | ||
keys | * | ||
options | * |
public static async encrypt(message: *, keys: *, options: *): Promise<{message: EncryptedMessage}>{message:> source
Encrypt plaintext object with given keys.
Params:
Name | Type | Attribute | Description |
message | * | ||
keys | * | ||
options | * |
public static async generateKey(params: *, passphrase: *, encryptOptions: *): Promise<*> source
Generate publicKeyPair or sessionKeyObject with js-crypto-utils.
Params:
Name | Type | Attribute | Description |
params | * | {Object} |
|
passphrase | * | {string} |
|
encryptOptions | * | {Object} |
public static async importKey(type: *, key: *, passphrase: *): Promise<jscu.Key> source
Import jscu key object
Params:
Name | Type | Attribute | Description |
type | * | ||
key | * | ||
passphrase | * |