INNER CODE UNIT · JavaScript

index

dotenvx/dotenvx · src/lib/decryptors/armor/index.js:4

async function index (src, options = {}) {
  const sesh = new Session()

  const hostname = sesh.hostname()
  const token = sesh.token()
  const devicePublicKey = sesh.devicePublicKey()

  return await new PostArmorDecrypt(
    hostname,
    token,
    devicePublicKey,
    options.publicKey,
    src,
    options.grantToken
  ).run()
}

module.exports = index

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…