This file contains hidden or 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
function Get-Md5Hash | |
{ | |
param([byte[]]$InputBytes) | |
(Get-FileHash -InputStream ([System.IO.MemoryStream] ($InputBytes)) -Algorithm MD5).Hash.ToLower() | |
} | |
function Get-BuderusKey | |
{ | |
param($PrivatePassword, $GatewayPassword) | |
$MagicBytes = [byte[]](0x86, 0x78, 0x45, 0xe9, 0x7c, 0x4e, 0x29, 0xdc, 0xe5, 0x22, 0xb9, 0xa7, 0xd3, 0xa3, 0xe0, 0x7b, 0x15, 0x2b, 0xff, 0xad, 0xdd, 0xbe, 0xd7, 0xf5, 0xff, 0xd8, 0x42, 0xe9, 0x89, 0x5a, 0xd1, 0xe4) |
This file contains hidden or 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
{ | |
"obsolete": [ | |
{ | |
"name": "Sectigo", | |
"url": "https://timestamp.sectigo.com" | |
}, | |
{ | |
"name": "FreeTSA", | |
"url": "https://freetsa.org" | |
} |
This file contains hidden or 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
using System; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Otor | |
{ | |
public class MsixUtils | |
{ | |
public static string GetPublisherHash(string publisherId) |
This file contains hidden or 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
$baseUrl = "<dataHubUrl>"; # for example http://localhost:81 | |
$taskGuid = "<taskGuid>"; # for example 6ca5c4e2-5095-4422-3b5e-08d96c734da2 - the ID of the task to start (can be copied from respective URL) | |
$username = "<username>"; # for example MyUser | |
$password = "<password>"; # for example Pa$$word | |
function TriggerTask | |
{ | |
param( | |
$DataHubUrl, | |
$AuthToken, |
This file contains hidden or 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
class ActualError { | |
[int]$HResult; | |
[string]$HResultHex; | |
[string]$HResultBin; | |
[string]$Facility; | |
[int]$FacilityCode; | |
[int]$ErrorCode; | |
[bool]$IsFailure; | |
[string]$Message; | |
[bool]$IsCustom; |