Skip to content

Commit a9986c3

Browse files
authored
Make DataProtection warnings mention aka.ms/dataprotectionwarning (#36174)
1 parent 2f02f3d commit a9986c3

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

src/DataProtection/DataProtection/src/Resources.resx

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -118,34 +118,34 @@
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120120
<data name="CryptCommon_GenericError" xml:space="preserve">
121-
<value>An error occurred during a cryptographic operation.</value>
121+
<value>An error occurred during a cryptographic operation. For more information go to http://aka.ms/dataprotectionwarning</value>
122122
</data>
123123
<data name="Common_BufferIncorrectlySized" xml:space="preserve">
124-
<value>The provided buffer is of length {0} byte(s). It must instead be exactly {1} byte(s) in length.</value>
124+
<value>The provided buffer is of length {0} byte(s). It must instead be exactly {1} byte(s) in length. For more information go to http://aka.ms/dataprotectionwarning</value>
125125
</data>
126126
<data name="CryptCommon_PayloadInvalid" xml:space="preserve">
127-
<value>The payload was invalid.</value>
127+
<value>The payload was invalid. For more information go to http://aka.ms/dataprotectionwarning</value>
128128
</data>
129129
<data name="Common_PropertyCannotBeNullOrEmpty" xml:space="preserve">
130130
<value>Property {0} cannot be null or empty.</value>
131131
</data>
132132
<data name="Common_DecryptionFailed" xml:space="preserve">
133-
<value>The provided payload could not be decrypted. Refer to the inner exception for more information.</value>
133+
<value>The provided payload could not be decrypted. Refer to the inner exception for more information. For more information go to http://aka.ms/dataprotectionwarning</value>
134134
</data>
135135
<data name="Common_EncryptionFailed" xml:space="preserve">
136-
<value>An error occurred while trying to encrypt the provided data. Refer to the inner exception for more information.</value>
136+
<value>An error occurred while trying to encrypt the provided data. Refer to the inner exception for more information. For more information go to http://aka.ms/dataprotectionwarning</value>
137137
</data>
138138
<data name="Common_KeyNotFound" xml:space="preserve">
139-
<value>The key {0:B} was not found in the key ring.</value>
139+
<value>The key {0:B} was not found in the key ring. For more information go to http://aka.ms/dataprotectionwarning</value>
140140
</data>
141141
<data name="Common_KeyRevoked" xml:space="preserve">
142-
<value>The key {0:B} has been revoked.</value>
142+
<value>The key {0:B} has been revoked. For more information go to http://aka.ms/dataprotectionwarning</value>
143143
</data>
144144
<data name="ProtectionProvider_BadMagicHeader" xml:space="preserve">
145-
<value>The provided payload cannot be decrypted because it was not protected with this protection provider.</value>
145+
<value>The provided payload cannot be decrypted because it was not protected with this protection provider. For more information go to http://aka.ms/dataprotectionwarning</value>
146146
</data>
147147
<data name="ProtectionProvider_BadVersion" xml:space="preserve">
148-
<value>The provided payload cannot be decrypted because it was protected with a newer version of the protection provider.</value>
148+
<value>The provided payload cannot be decrypted because it was protected with a newer version of the protection provider. For more information go to http://aka.ms/dataprotectionwarning</value>
149149
</data>
150150
<data name="Common_ValueMustBeNonNegative" xml:space="preserve">
151151
<value>Value must be non-negative.</value>
@@ -154,45 +154,45 @@
154154
<value>The type '{1}' is not assignable to '{0}'.</value>
155155
</data>
156156
<data name="KeyManagementOptions_MinNewKeyLifetimeViolated" xml:space="preserve">
157-
<value>The new key lifetime must be at least one week.</value>
157+
<value>The new key lifetime must be at least one week. For more information go to http://aka.ms/dataprotectionwarning</value>
158158
</data>
159159
<data name="XmlKeyManager_DuplicateKey" xml:space="preserve">
160-
<value>The key {0:B} already exists in the keyring.</value>
160+
<value>The key {0:B} already exists in the keyring. For more information go to http://aka.ms/dataprotectionwarning</value>
161161
</data>
162162
<data name="Common_ArgumentCannotBeNullOrEmpty" xml:space="preserve">
163163
<value>Argument cannot be null or empty.</value>
164164
</data>
165165
<data name="Common_PropertyMustBeNonNegative" xml:space="preserve">
166-
<value>Property {0} must have a non-negative value.</value>
166+
<value>Property {0} must have a non-negative value. For more information go to http://aka.ms/dataprotectionwarning</value>
167167
</data>
168168
<data name="Platform_WindowsRequiredForGcm" xml:space="preserve">
169-
<value>GCM algorithms require the Windows platform.</value>
169+
<value>GCM algorithms require the Windows platform. For more information go to http://aka.ms/dataprotectionwarning</value>
170170
</data>
171171
<data name="CertificateXmlEncryptor_CertificateNotFound" xml:space="preserve">
172-
<value>A certificate with the thumbprint '{0}' could not be found.</value>
172+
<value>A certificate with the thumbprint '{0}' could not be found. For more information go to http://aka.ms/dataprotectionwarning</value>
173173
</data>
174174
<data name="EncryptedXmlDecryptor_DoesNotWorkOnCoreClr" xml:space="preserve">
175-
<value>Decrypting EncryptedXml-encapsulated payloads is not yet supported on Core CLR.</value>
175+
<value>Decrypting EncryptedXml-encapsulated payloads is not yet supported on Core CLR. For more information go to http://aka.ms/dataprotectionwarning</value>
176176
</data>
177177
<data name="AlgorithmAssert_BadBlockSize" xml:space="preserve">
178-
<value>The symmetric algorithm block size of {0} bits is invalid. The block size must be between 64 and 2048 bits, inclusive, and it must be a multiple of 8 bits.</value>
178+
<value>The symmetric algorithm block size of {0} bits is invalid. The block size must be between 64 and 2048 bits, inclusive, and it must be a multiple of 8 bits. For more information go to http://aka.ms/dataprotectionwarning</value>
179179
</data>
180180
<data name="AlgorithmAssert_BadDigestSize" xml:space="preserve">
181-
<value>The validation algorithm digest size of {0} bits is invalid. The digest size must be between 128 and 2048 bits, inclusive, and it must be a multiple of 8 bits.</value>
181+
<value>The validation algorithm digest size of {0} bits is invalid. The digest size must be between 128 and 2048 bits, inclusive, and it must be a multiple of 8 bits. For more information go to http://aka.ms/dataprotectionwarning</value>
182182
</data>
183183
<data name="AlgorithmAssert_BadKeySize" xml:space="preserve">
184-
<value>The symmetric algorithm key size of {0} bits is invalid. The key size must be between 128 and 2048 bits, inclusive, and it must be a multiple of 8 bits.</value>
184+
<value>The symmetric algorithm key size of {0} bits is invalid. The key size must be between 128 and 2048 bits, inclusive, and it must be a multiple of 8 bits. For more information go to http://aka.ms/dataprotectionwarning</value>
185185
</data>
186186
<data name="KeyRingProvider_NoDefaultKey_AutoGenerateDisabled" xml:space="preserve">
187-
<value>The key ring does not contain a valid default protection key. The data protection system cannot create a new key because auto-generation of keys is disabled.</value>
187+
<value>The key ring does not contain a valid default protection key. The data protection system cannot create a new key because auto-generation of keys is disabled. For more information go to http://aka.ms/dataprotectionwarning</value>
188188
</data>
189189
<data name="LifetimeMustNotBeNegative" xml:space="preserve">
190-
<value>{0} must not be negative</value>
190+
<value>{0} must not be negative. For more information go to http://aka.ms/dataprotectionwarning</value>
191191
</data>
192192
<data name="XmlKeyManager_IXmlRepositoryNotFound" xml:space="preserve">
193-
<value>The '{0}' instance could not be found. When an '{1}' instance is set, a corresponding '{0}' instance must also be set.</value>
193+
<value>The '{0}' instance could not be found. When an '{1}' instance is set, a corresponding '{0}' instance must also be set. For more information go to http://aka.ms/dataprotectionwarning</value>
194194
</data>
195195
<data name="FileSystem_EphemeralKeysLocationInContainer" xml:space="preserve">
196-
<value>Storing keys in a directory '{path}' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.</value>
196+
<value>Storing keys in a directory '{path}' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to http://aka.ms/dataprotectionwarning</value>
197197
</data>
198-
</root>
198+
</root>

src/DataProtection/Extensions/src/Resources.resx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,12 @@
118118
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120120
<data name="CryptCommon_GenericError" xml:space="preserve">
121-
<value>An error occurred during a cryptographic operation.</value>
121+
<value>An error occurred during a cryptographic operation. For more information go to http://aka.ms/dataprotectionwarning</value>
122122
</data>
123123
<data name="TimeLimitedDataProtector_PayloadExpired" xml:space="preserve">
124-
<value>The payload expired at {0}.</value>
124+
<value>The payload expired at {0}. For more information go to http://aka.ms/dataprotectionwarning</value>
125125
</data>
126126
<data name="TimeLimitedDataProtector_PayloadInvalid" xml:space="preserve">
127-
<value>The payload is invalid.</value>
127+
<value>The payload is invalid. For more information go to http://aka.ms/dataprotectionwarning</value>
128128
</data>
129-
</root>
129+
</root>

0 commit comments

Comments
 (0)