1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

null check for mac

This commit is contained in:
Kyle Spearrin 2017-07-23 00:10:32 -04:00
parent 4e8f69f692
commit d14b23ca82

View File

@ -13,7 +13,7 @@ namespace Bit.App.Utilities
{ {
var parts = AesCbcEncryptToParts(plainBytes, key); var parts = AesCbcEncryptToParts(plainBytes, key);
return new CipherString(parts.Item1, Convert.ToBase64String(parts.Item2), return new CipherString(parts.Item1, Convert.ToBase64String(parts.Item2),
Convert.ToBase64String(parts.Item4), Convert.ToBase64String(parts.Item3)); Convert.ToBase64String(parts.Item4), parts.Item3 != null ? Convert.ToBase64String(parts.Item3) : null);
} }
public static byte[] AesCbcEncryptToBytes(byte[] plainBytes, SymmetricCryptoKey key) public static byte[] AesCbcEncryptToBytes(byte[] plainBytes, SymmetricCryptoKey key)