12 lines
271 B
JavaScript
12 lines
271 B
JavaScript
// Crypto shim
|
|
// Obsidian uses: scrypt, randomBytes, createHash
|
|
|
|
import { randomBytes } from './random-bytes.js';
|
|
import { createHash } from './create-hash.js';
|
|
import { scrypt } from './scrypt.js';
|
|
|
|
export const cryptoShim = {
|
|
randomBytes,
|
|
createHash,
|
|
scrypt,
|
|
};
|