NCRYPT_USE_PER_BOOT_KEY_FLAG
will be erased after reboot, even persisted with name.NCRYPT_USE_PER_BOOT_KEY_FLAG
will not take effect, if same named key was already created withNCRYPT_REQUIRE_VBS_FLAG
only.- Same, if a key was created with
NCRYPT_USE_PER_BOOT_KEY_FLAG
and was created again withNCRYPT_OVERWRITE_KEY_FLAG
withoutNCRYPT_USE_PER_BOOT_KEY_FLAG
, this flag will not be overwritten, and the key will keep being erased across boots.
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
package main | |
import ( | |
"crypto/ecdsa" | |
"crypto/elliptic" | |
"crypto/rand" | |
"crypto/subtle" | |
"crypto/x509" | |
"log" | |
"math/big" |
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
#include <iostream> | |
#include <winsock2.h> | |
#include <windows.h> | |
#include <ws2tcpip.h> | |
#include <afunix.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <MSWSock.h> | |
#include <string> |
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
public override async Task OnAtMessage(TBot z, Message msg) { | |
if (msg.Author.Id != App.MeId || msg.Content != "!抽装扮") | |
return; | |
var ctx = _store.Contexts.First(); | |
string[] dynamicIds = ["901551426888532038", "901677050380681222"]; | |
var userPossibilities = new Dictionary<string, int>(); | |
var replies = new List<BiliUserContext.ReplyRecord>(); | |
foreach (var id in dynamicIds) { |
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
Dictionary<string, List<string>> ParseLanguageBin(string fileName) { | |
var subtitleDict = new Dictionary<string, List<string>>(); | |
using var file = File.OpenRead(fileName); | |
using var reader = new BinaryReader(file); | |
var hash = reader.ReadBytes(16); | |
var version = reader.ReadInt32(); | |
var unkA = reader.ReadInt32(); | |
var unkB = reader.ReadInt32(); |
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
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | |
vcpkg_from_git( | |
OUT_SOURCE_PATH SOURCE_PATH | |
URL https://chromium.googlesource.com/libyuv/libyuv | |
REF 0faf8dd0e004520a61a603a4d2996d5ecc80dc3f | |
# Check https://chromium.googlesource.com/libyuv/libyuv/+/refs/heads/main/include/libyuv/version.h for a version! | |
PATCHES | |
fix-cmakelists.patch | |
) |
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
@import url("https://fonts.googleapis.com/css?family=Changa%20One"); | |
@import url("https://fonts.googleapis.com/css?family=Imprima"); | |
/* Transparent background */ | |
yt-live-chat-renderer { | |
background-color: transparent !important; | |
} | |
yt-live-chat-ticker-renderer { | |
background-color: transparent !important; |
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
// 储存Cookie类 | |
public class WeiboToken { | |
public string Gsid { get; set; } | |
public string Uid { get; set; } | |
public DateTime LoginTime { get; set; } | |
public List<Cookie> Cookies { get; set; } | |
} | |
// Step 1: Login | |
if (msg.Content.StartsWith("weibo")) { |
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
{ | |
"meta": { | |
"theme": "even" | |
}, | |
"basics": { | |
"name": "Wang Zhongwei", | |
"label": "Full Stack Engineer", | |
"image": "", | |
"email": "[email protected]", | |
"phone": "(86) 186-5298-5013", |
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.Security.Cryptography; | |
namespace TgServer.Crypto; | |
public sealed class AesCtr { | |
private readonly byte[] _key; | |
private readonly byte[] _counter; | |
private readonly byte[] _blockKey; | |
private readonly ICryptoTransform _encryptor; |
NewerOlder