Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8789523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:25:50+00:00 2026-06-13T22:25:50+00:00

We are using openssl aes-128 encryption for streaming media on HLS video streaming for

  • 0

We are using openssl aes-128 encryption for streaming media on HLS video streaming for Apple.

Below is the command used for the aes-128 encryption

openssl aes-128-cbc -salt -k <HEXKey> -iv <HEXIV> -in <INFILE> -out <OUTFILE>

And below in my Playlist / Index File being used for hls streaming.

#EXTM3U
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:NO
#EXT-X-VERSION:2
#EXT-X-KEY:METHOD=AES-128,URI="http://xxx.xxxx.xxx/key.txt",IV=0x00000000000000000000000000000000
#EXT-X-TARGETDURATION:10
#EXTINF:10,
http://xxx.xxxx.xxx/encry.ts
#EXT-X-ENDLIST  

Where , key.txt contains the hex key as of form 0x00000000000000000000000000000000.

But this is not working and not playing media on IOS device. provides error as This movie could not be played

I am not sure , what is wrong in it. Is this issue of encryption method or playlist file

Please help me. I’ll Appreciate.

Thanks in Advance

EDIT :

I Felt , below few information, may help if anything wrong in that.

Below is command I use for creating hex key and IV

openssl enc -aes-128-cbc -k String@MyKey -P -md sha1

Please help me if anything wrong with it.

now my playlist file parsing fine with Media Stream Validator , but while validating media it gives below error.

unable to parse segment due to encryption

Please help anybody.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:25:52+00:00Added an answer on June 13, 2026 at 10:25 pm

    Your problem is actually with the file ‘key.txt’. The HLS specs say that the URI attribute within the #EXT-X-KEY tag must point to a file with an array of the 16 octets in binary format, not the hex string that you are providing.

    For more info see: https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming-10#section-5

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We know we can encrypt a file with openssl using this command: openssl aes-256-cbc
I'm using OpenSSL's EVP_* API to implement AES encryption in CBC mode. I'm trying
I'm looking for an example of using OpenSSL's AES CCM encryption. Apparently, this is
Why do i got different ciphertexts when i used openssl aes command tools and
I am trying to re-create this openssl command in C#: openssl enc –e –aes-256-cbc
I am trying to take an AES HMAC of a file using the openssl
I am implementing a small demo application which encrypts using AES CTR with OpenSSL
I'm using the following working code to decrypt a file: #include <openssl/aes.h> #include <stdio.h>
I am using openssl APIs for AES in my code. What I noticed that
I don't know how could I measure the elapsed time in encryption using openssl.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.