Exemplo n.º 1
0
        private void buttonAzureSettings_Click(object sender, EventArgs e)
        {
            IContentKey key = _context.ContentKeys.Where(k => k.ContentKeyType == ContentKeyType.CommonEncryption).FirstOrDefault();

            if (key != null)
            {
                try
                {
                    Uri myUri = key.GetKeyDeliveryUrl(ContentKeyDeliveryType.PlayReadyLicense);
                    if (myUri != null)
                    {
                        textBoxLAurl.Text = myUri.ToString();
                    }
                }
                catch
                {
                }
            }
            textBoxkeyseed.Text    = string.Empty;
            textBoxkeyid.Text      = Guid.NewGuid().ToString();
            textBoxcontentkey.Text = Convert.ToBase64String(DynamicEncryption.GetRandomBuffer(16));
        }
Exemplo n.º 2
0
 private void buttongenerateContentKey_Click(object sender, EventArgs e)
 {
     radioButtonContentKeyBase64.Checked = true;
     textBoxcontentkey.Text = Convert.ToBase64String(DynamicEncryption.GetRandomBuffer(16));
 }
Exemplo n.º 3
0
 private void buttongenerateContentKey_Click(object sender, EventArgs e)
 {
     textBoxcontentkey.Text = Convert.ToBase64String(DynamicEncryption.GetRandomBuffer(16));
     textBoxkeyseed.Text    = string.Empty;
 }