Skip to content

Instantly share code, notes, and snippets.

@keima
Created February 14, 2017 04:59
Show Gist options
  • Save keima/e2ba9bce134f7596995ebc0bc70575d4 to your computer and use it in GitHub Desktop.
Save keima/e2ba9bce134f7596995ebc0bc70575d4 to your computer and use it in GitHub Desktop.
HLS
#!/bin/sh
if [ $# -ne 3 ]; then
echo "How to use:" 1>&2
echo "$0 keyfile.key "iv_hex_32_length" encripted.ts" 1>&2
exit 1
fi
openssl aes-128-cbc -d -in $3 -out decripted_$3 -p -nosalt -iv $2 -K $(cat $1 | hexdump -e '16/1 "%02x"')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment