macho-is-encrypted
Version:
Determine if your macho is encrypted
18 lines (14 loc) • 394 B
JavaScript
const test = require('tape')
const isEncryptedSync = require('.')
const fs = require('fs')
const execPath = process.execPath
const data = fs.readFileSync(execPath)
test('sync api - data', function (t) {
t.ok(!isEncryptedSync.data(data), 'not encrypted')
t.end()
})
test('sync api - path', function (t) {
t.ok(!isEncryptedSync.path(execPath), 'not encrypted')
t.end()
})