| 1234567891011121314 |
- // Copyright (c) .NET Foundation. All rights reserved.
- // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
- using System;
- using System.Text;
- namespace Microsoft.AspNetCore.DataProtection
- {
- internal static class EncodingUtil
- {
- // UTF8 encoding that fails on invalid chars
- public static readonly UTF8Encoding SecureUtf8Encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false, throwOnInvalidBytes: true);
- }
- }
|