mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-19 19:29:15 +12:00
Add Multiple transports system, begin work on WebSockets
This commit is contained in:
parent
e869a23463
commit
e74f66a439
22 changed files with 3752 additions and 3301 deletions
|
@ -70,6 +70,13 @@ namespace HISP.Security
|
|||
return decrypt.Replace(" ", "");
|
||||
}
|
||||
|
||||
public static byte[] Sha1Digest(byte[] message)
|
||||
{
|
||||
using (SHA1 sha1 = SHA1.Create())
|
||||
return sha1.ComputeHash(message);
|
||||
}
|
||||
|
||||
|
||||
public static byte[] Sha512Digest(byte[] message)
|
||||
{
|
||||
using (SHA512 sha512 = SHA512.Create())
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace HISP.Security
|
|||
{
|
||||
public class CrossDomainPolicy
|
||||
{
|
||||
public static byte[] GetPolicy()
|
||||
public static byte[] GetPolicyFile()
|
||||
{
|
||||
if (!File.Exists(ConfigReader.CrossDomainPolicyFile)) {
|
||||
Logger.InfoPrint("Cross-Domain-Policy file not found, using default");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue