diff --git a/iothub/service/src/Common/Security/CryptoKeyGenerator.cs b/iothub/service/src/Common/Security/CryptoKeyGenerator.cs
index fdd1386e6e..bd8ea4cfb0 100644
--- a/iothub/service/src/Common/Security/CryptoKeyGenerator.cs
+++ b/iothub/service/src/Common/Security/CryptoKeyGenerator.cs
@@ -72,6 +72,7 @@ public static string GenerateKey(int keySize)
///
/// Desired key size.
/// A generated hexadecimal key.
+ [Obsolete("This method will not be carried forward to newer .NET targets.")]
public static string GenerateKeyInHex(int keySize)
{
byte[] keyBytes = new byte[keySize];
@@ -85,6 +86,7 @@ public static string GenerateKeyInHex(int keySize)
/// Generate a GUID using random bytes from the framework's cryptograpically strong RNG (Random Number Generator).
///
/// A cryptographically secure GUID.
+ [Obsolete("This method will not be carried forward to newer .NET targets.")]
public static Guid GenerateGuid()
{
byte[] bytes = new byte[GuidLength];
@@ -116,6 +118,7 @@ public static Guid GenerateGuid()
/// Generate a unique password with a default length and without converting it to Base64String.
///
/// A unique password.
+ [Obsolete("This method will not be carried forward to newer .NET targets.")]
public static string GeneratePassword()
{
return GeneratePassword(DefaultPasswordLength, false);
@@ -127,6 +130,7 @@ public static string GeneratePassword()
/// Desired length of the password.
/// Encode the password if set to True. False otherwise.
/// A generated password.
+ [Obsolete("This method will not be carried forward to newer .NET targets.")]
public static string GeneratePassword(int length, bool base64Encoding)
{
string password = Membership.GeneratePassword(length, length / 2);