Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AppHarbor.Web.Security/CookieAuthenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public void SignOut()
_context.Response.Cookies.Add(new HttpCookie(_configuration.CookieName, "")
{
Expires = DateTime.UtcNow.AddMonths(-100),
Domain = _configuration.Domain
});
}

Expand Down
12 changes: 1 addition & 11 deletions AppHarbor.Web.Security/SymmetricEncryption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,7 @@ public override byte[] Encrypt(byte[] valueBytes, byte[] initializationVector)
{
initializationVector = new byte[_algorithm.BlockSize / 8];
var rng = RandomNumberGenerator.Create();
try
{
rng.GetBytes(initializationVector);
}
finally
{
if (rng != null)
{
((IDisposable)rng).Dispose();
}
}
rng.GetBytes(initializationVector);

}
using (var output = new MemoryStream())
Expand Down