Extension of crypto Symmetric key API that uses files as keys.
var { createCypher, createDecypher } = require('crypt-key-file')
var fs = require('fs')
;(async function () {
var ws = fs.createWriteStream('./crypted')
var rs = fs.createReadStream('./LICENSE')
// algoritms are sames of crypto
// file README is the key
var cypher = await createCypher('aes192','./FILEKEY.mp4')
rs.pipe(cypher).pipe(ws)
})()
;(async function () {
var ws = fs.createWriteStream('./decrypt')
var rs = fs.createReadStream('./crypted')
var cypher = await createDecypher('aes192','./FILEKEY.mp4')
rs.pipe(cypher).pipe(ws)
})()