Created
February 14, 2017 04:59
-
-
Save keima/e2ba9bce134f7596995ebc0bc70575d4 to your computer and use it in GitHub Desktop.
HLS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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