Required. Identifier for this set of encryption options. The ID must be
1-63 characters in length. The ID must begin and end with a letter
(regardless of case) or a number, but can contain dashes or underscores in
between.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eEncryption\u003c/code\u003e class within the Google Cloud Live Stream v1 API, specifically for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEncryption\u003c/code\u003e class allows for configuration of various encryption settings, including AES-128, MPEG-CENC, and SAMPLE-AES encryption for HLS.\u003c/p\u003e\n"],["\u003cp\u003eDRM system configurations are required and can be set up with this class.\u003c/p\u003e\n"],["\u003cp\u003eEncryption keys can be managed via Google Secret Manager, or through the use of identifiers that must be 1-63 characters long.\u003c/p\u003e\n"],["\u003cp\u003eThis document covers versions of the .NET API from 1.0.0 up to the latest version, 1.8.0, for the \u003ccode\u003eEncryption\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Live Stream v1 API - Class Encryption (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.Encryption)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.8.0/Google.Cloud.Video.LiveStream.V1.Encryption)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.7.0/Google.Cloud.Video.LiveStream.V1.Encryption)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.6.0/Google.Cloud.Video.LiveStream.V1.Encryption)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.5.0/Google.Cloud.Video.LiveStream.V1.Encryption)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.4.0/Google.Cloud.Video.LiveStream.V1.Encryption)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.3.0/Google.Cloud.Video.LiveStream.V1.Encryption)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.2.0/Google.Cloud.Video.LiveStream.V1.Encryption)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.1.0/Google.Cloud.Video.LiveStream.V1.Encryption)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.0.0/Google.Cloud.Video.LiveStream.V1.Encryption) \n\n public sealed class Encryption : IMessage\u003cEncryption\u003e, IEquatable\u003cEncryption\u003e, IDeepCloneable\u003cEncryption\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Live Stream v1 API class Encryption.\n\nEncryption settings. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Encryption \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Encryption](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.Encryption), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Encryption](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.Encryption), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Encryption](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.Encryption), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Video.LiveStream.V1](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Video.LiveStream.V1.dll\n\nConstructors\n------------\n\n### Encryption()\n\n public Encryption()\n\n### Encryption(Encryption)\n\n public Encryption(Encryption other)\n\nProperties\n----------\n\n### Aes128\n\n public Encryption.Types.Aes128Encryption Aes128 { get; set; }\n\nConfiguration for HLS AES-128 encryption.\n\n### DrmSystems\n\n public Encryption.Types.DrmSystems DrmSystems { get; set; }\n\nRequired. Configuration for DRM systems.\n\n### EncryptionModeCase\n\n public Encryption.EncryptionModeOneofCase EncryptionModeCase { get; }\n\n### Id\n\n public string Id { get; set; }\n\nRequired. Identifier for this set of encryption options. The ID must be\n1-63 characters in length. The ID must begin and end with a letter\n(regardless of case) or a number, but can contain dashes or underscores in\nbetween.\n\n### MpegCenc\n\n public Encryption.Types.MpegCommonEncryption MpegCenc { get; set; }\n\nConfiguration for MPEG-Dash Common Encryption (MPEG-CENC).\n\n### SampleAes\n\n public Encryption.Types.SampleAesEncryption SampleAes { get; set; }\n\nConfiguration for HLS SAMPLE-AES encryption.\n\n### SecretManagerKeySource\n\n public Encryption.Types.SecretManagerSource SecretManagerKeySource { get; set; }\n\nFor keys stored in Google Secret Manager.\n\n### SecretSourceCase\n\n public Encryption.SecretSourceOneofCase SecretSourceCase { get; }"]]