aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Cryptography
diff options
context:
space:
mode:
authorPhallacy <Dragoonmac@gmail.com>2019-03-05 23:45:05 -0800
committerPhallacy <Dragoonmac@gmail.com>2019-03-05 23:45:05 -0800
commitbef665be364ce1477d09ed268f68c19e0099922f (patch)
treeb43052260c601d7de1f5fd3c01c7501c5411e7f3 /MediaBrowser.Model/Cryptography
parent2c26517172ca2c2f1df1c83d9300ad7c66667866 (diff)
Minor fixes to address style issues
Diffstat (limited to 'MediaBrowser.Model/Cryptography')
-rw-r--r--MediaBrowser.Model/Cryptography/PasswordHash.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/MediaBrowser.Model/Cryptography/PasswordHash.cs b/MediaBrowser.Model/Cryptography/PasswordHash.cs
index a52840404..7a1be833d 100644
--- a/MediaBrowser.Model/Cryptography/PasswordHash.cs
+++ b/MediaBrowser.Model/Cryptography/PasswordHash.cs
@@ -100,13 +100,14 @@ namespace MediaBrowser.Model.Cryptography
public static byte[] ConvertFromByteString(string byteString)
{
- List<byte> Bytes = new List<byte>();
+ List<byte> bytes = new List<byte>();
for (int i = 0; i < byteString.Length; i += 2)
{
- Bytes.Add(Convert.ToByte(byteString.Substring(i, 2),16));
+ // TODO: NetStandard2.1 switch this to use a span instead of a substring.
+ bytes.Add(Convert.ToByte(byteString.Substring(i, 2),16));
}
- return Bytes.ToArray();
+ return bytes.ToArray();
}
public static string ConvertToByteString(byte[] bytes)