@dvxch/yandex-music
    Preparing search index...

    Function encrawDecipher

    • Build the AES-CTR decipher transform for an encraw stream from its hex key.

      AES-CTR is a stream cipher, so this can be piped (decrypting on the fly during a streaming download) as well as run over a whole buffer. The IV is 16 zero bytes; the key length selects AES-128 vs AES-256.

      Parameters

      • keyHex: string

        The hex AES-CTR key from /get-file-info.

      Returns Decipher

      A fresh decipher transform (single-use).