Skip to content

Commit

Permalink
add unit test for generating session sig keys
Browse files Browse the repository at this point in the history
  • Loading branch information
0xor1 committed Dec 31, 2023
1 parent c0f1fcd commit db97d2d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Common.Server.Test/CryptoTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System.Text;
using Amazon.S3;
using Common.Server.Auth;
using Common.Shared;
using Common.Shared.Auth;
using Xunit.Abstractions;

namespace Common.Server.Test;

public class CryptoTests
{
private readonly ITestOutputHelper _testOutputHelper;

public CryptoTests(ITestOutputHelper testOutputHelper)
{
_testOutputHelper = testOutputHelper;
}

[Fact]
public async Task String_Success()
{
// used for generating cookie session signature keys
var s = Crypto.String(64);
_testOutputHelper.WriteLine(s);
}
}

0 comments on commit db97d2d

Please sign in to comment.