airsonos
airsonos copied to clipboard
Error: Invalid key length
Searching for Sonos devices on network...
Family Room (@ 192.168.1.5:1400, RINCON_5CAAFD78602801400:0)
Search complete. Set up 1 device tunnel. crypto.js:239 this._handle.initiv(cipher, toBuf(key), toBuf(iv)); ^
Error: Invalid key length
at Error (native)
at new Decipheriv (crypto.js:239:16)
at Object.Decipheriv (crypto.js:236:12)
at Object.decryptAudioData (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/helper.js:141:25)
at RtpServer.
@mattalexx The problem is caused by a change in the crypto library in Node 6. See https://github.com/stephen/nodetunes/pull/42.
Same issue.
This has been discussed in many issues already. I have condensed the workaround in this comment of mine: https://github.com/stephen/airsonos/issues/342#issuecomment-295770479