blank project
This commit is contained in:
2
node_modules/astro/dist/cli/create-key/infra/crypto-key-generator.d.ts
generated
vendored
Normal file
2
node_modules/astro/dist/cli/create-key/infra/crypto-key-generator.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import type { KeyGenerator } from '../definitions.js';
|
||||
export declare function createCryptoKeyGenerator(): KeyGenerator;
|
||||
13
node_modules/astro/dist/cli/create-key/infra/crypto-key-generator.js
generated
vendored
Normal file
13
node_modules/astro/dist/cli/create-key/infra/crypto-key-generator.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { createKey, encodeKey } from "../../../core/encryption.js";
|
||||
function createCryptoKeyGenerator() {
|
||||
return {
|
||||
async generate() {
|
||||
const key = await createKey();
|
||||
const encoded = await encodeKey(key);
|
||||
return encoded;
|
||||
}
|
||||
};
|
||||
}
|
||||
export {
|
||||
createCryptoKeyGenerator
|
||||
};
|
||||
Reference in New Issue
Block a user