-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from 0x78654C/v1.1.7-share-vault-lock
V1.1.7 share vault lock
- Loading branch information
Showing
41 changed files
with
756 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace PwM.Tests.Encryption | ||
{ | ||
public class Sha1Test | ||
{ | ||
[Theory] | ||
[InlineData("pawn", "1245E238CD5CD7E0D3E5CF5233265A6F2095E5B0")] | ||
public void Ensure_we_can_(string inParam, string expected) | ||
{ | ||
var hashSha1 = PwMLib.Sha1Converter.Hash(inParam); | ||
Assert.Equal(expected, hashSha1); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using PwMLib; | ||
|
||
namespace PwM.Tests.HIPB | ||
{ | ||
public class HIBPTest | ||
{ | ||
[Theory] | ||
[InlineData("pawn")] | ||
public void Check_API_HIBP(string password) | ||
{ | ||
var hibp = new HIBP(GlobalVariables.apiHIBP); | ||
var totalBreaches = hibp.CheckIfPwnd(password).Result; | ||
bool isbreached = false; | ||
if (totalBreaches != "0") | ||
isbreached = true; | ||
Assert.True(isbreached); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using PwMLib; | ||
|
||
namespace PwM.Tests.Util | ||
{ | ||
public class NetworkTest | ||
{ | ||
[Theory] | ||
[InlineData("https://google.com")] | ||
public void Check_Web_Response(string address) | ||
{ | ||
var network = new Network(address); | ||
var isGooglUp = network.IsWebResponding(); | ||
Assert.True(isGooglUp); | ||
} | ||
|
||
[Theory] | ||
[InlineData("google.com")] | ||
[InlineData("api.pwnedpasswords.com")] | ||
public void Check_Ping_Response(string address) | ||
{ | ||
var network = new Network(address); | ||
var isGooglUp = network.PingHost(); | ||
Assert.True(isGooglUp); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.