/
opt
/
canhelp
/
node_modules
/
jose
/
dist
/
types
/
key
/
/opt/canhelp/node_modules/jose/dist/types/key
mkdir
upload
Name
Size
Mode
Actions
export.d.ts
1343
0644
edit
dl
rm
generate_key_pair.d.ts
1961
0644
edit
dl
rm
generate_secret.d.ts
1410
0644
edit
dl
rm
import.d.ts
3737
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/jose/dist/types/key/generate_secret.d.ts
(1410B)
/** * Symmetric key generation * * @module */ import type * as types from '../types.d.ts'; /** Secret generation function options. */ export interface GenerateSecretOptions { /** * The value to use as {@link !SubtleCrypto.generateKey} `extractable` argument. Default is false. * * > [!NOTE]\ * > Because A128CBC-HS256, A192CBC-HS384, and A256CBC-HS512 secrets cannot be represented as * > {@link !CryptoKey} this option has no effect for them. */ extractable?: boolean; } /** * Generates a symmetric secret key for a given JWA algorithm identifier. * * > [!NOTE]\ * > The secret key is generated with `extractable` set to `false` by default. * * > [!NOTE]\ * > Because A128CBC-HS256, A192CBC-HS384, and A256CBC-HS512 secrets cannot be represented as * > {@link !CryptoKey} this method yields a {@link !Uint8Array} for them instead. * * This function is exported (as a named export) from the main `'jose'` module entry point as well * as from its subpath export `'jose/generate/secret'`. * * @param alg JWA Algorithm Identifier to be used with the generated secret. See * {@link https://github.com/panva/jose/issues/210 Algorithm Key Requirements}. * @param options Additional options passed down to the secret generation. */ export declare function generateSecret(alg: string, options?: GenerateSecretOptions): Promise<types.CryptoKey | Uint8Array>;
Save
cmd:
run