Skip to content

Instantly share code, notes, and snippets.

@Dexveloper
Dexveloper / self-signed-certificate-with-custom-ca.md
Created December 28, 2022 07:19 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
$Key = "HKCU:\Software\ROBLOX Corporation\Environments\roblox-player"
while ($true)
{
$CurrentValue = (Get-ItemProperty -Path $Key -Name "LaunchExp").LaunchExp
if ($CurrentValue -eq "InApp")
{
#Write-Output "Value is InApp."
Set-ItemProperty -Path $Key -Name "LaunchExp" -Value "InBrowser"
}
@Dexveloper
Dexveloper / crypto-pbkdf2.js
Created October 10, 2022 03:51 — forked from chrisveness/crypto-pbkdf2.js
Uses the SubtleCrypto interface of the Web Cryptography API to hash a password using PBKDF2, and validate a stored password hash against a subsequently supplied password. Note that both bcrypt and scrypt offer better defence against ASIC/GPU attacks, but are not available within WebCrypto.
/**
* Returns PBKDF2 derived key from supplied password.
*
* Stored key can subsequently be used to verify that a password matches the original password used
* to derive the key, using pbkdf2Verify().
*
* @param {String} password - Password to be hashed using key derivation function.
* @param {Number} [iterations=1e6] - Number of iterations of HMAC function to apply.
* @returns {String} Derived key as base64 string.
*
@Dexveloper
Dexveloper / erisPrototypes.js
Created June 2, 2022 00:22 — forked from nirewen/erisPrototypes.js
A list of helpful functions for my Eris bot
let Endpoints = require("eris/lib/rest/Endpoints");
Object.defineProperties(Eris.Client.prototype, {
fetchChannel: {
value: function(channelID) {
return this.requestHandler.request("GET", Endpoints.CHANNEL(channelID), true).then((channel) => {
if (channel.type === 0) {
return new Eris.TextChannel(channel, null, this.options.messageLimit);
} else if (channel.type === 1) {
return new Eris.PrivateChannel(channel, this);
} else if (channel.type === 2) {