Initial commit
This commit is contained in:
11
node_modules/astro/dist/cli/create-key/infra/crypto-key-generator.js
generated
vendored
Normal file
11
node_modules/astro/dist/cli/create-key/infra/crypto-key-generator.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { createKey, encodeKey } from "../../../core/encryption.js";
|
||||
class CryptoKeyGenerator {
|
||||
async generate() {
|
||||
const key = await createKey();
|
||||
const encoded = await encodeKey(key);
|
||||
return encoded;
|
||||
}
|
||||
}
|
||||
export {
|
||||
CryptoKeyGenerator
|
||||
};
|
||||
Reference in New Issue
Block a user