jose/lib/help/key_object.js
2019-02-20 23:12:08 +01:00

6 lines
230 B
JavaScript

const { createSecretKey } = require('crypto')
const SecretKeyObject = Object.getPrototypeOf(createSecretKey(Buffer.allocUnsafe(1)))
const KeyObject = Object.getPrototypeOf(SecretKeyObject).constructor
module.exports = KeyObject