How to store decryption key to play encrypted HLS video

I use encrypted contents in my app . Before playing I request for decryption key which helps in playing content online . I want to play content offline too . So I download the content. But how can I store decryption keys ?

How to store decryption key to play encrypted HLS video
 
 
Q