xxtea / xxtea-nodejs

XXTEA for encryption algorithm library Node.js
MIT License
57 stars 30 forks source link

能否实现流操作 #3

Closed loohoo closed 1 year ago

loohoo commented 4 years ago

如果实现支持pipe 应该怎么改造呢:

fs.createReadStream(".secret.txt")
  .pipe(new xxtea.createEncrypt('key')))
  .pipe(fs.createWriteStream('out.text.tea'))
  .on('close', decrypt);
andot commented 4 years ago

xxtea 不是一个流加密算法,我不知道怎么改造。