Skip to content

Instantly share code, notes, and snippets.

View sblmnl's full-sized avatar
🦅

Jared Shue sblmnl

🦅
  • Virginia, United States
  • 02:08 (UTC -04:00)
  • LinkedIn in/jared-shue
View GitHub Profile
@sblmnl
sblmnl / HalgName.cs
Last active February 3, 2024 20:26
Better hash algorithm names for .NET
namespace System.Security.Cryptography;
public record HalgName
{
public static readonly HalgName MD5 = new("MD5", HashAlgorithmName.MD5);
public static readonly HalgName SHA1 = new("SHA1", HashAlgorithmName.SHA1);
public static readonly HalgName SHA256 = new("SHA256", HashAlgorithmName.SHA256);
public static readonly HalgName SHA384 = new("SHA384", HashAlgorithmName.SHA384);
public static readonly HalgName SHA512 = new("SHA512", HashAlgorithmName.SHA512);
public static readonly HalgName SHA3_256 = new("SHA3-256", HashAlgorithmName.SHA3_256);
@sblmnl
sblmnl / PSJobManager.md
Created October 3, 2022 12:36
An easy to use concurrency manager for PowerShell

PowerShell Job Manager

An easy to use concurrency manager for PowerShell

Source Code

class JobManager
{
    [Collections.Generic.Dictionary[String, Guid]] $Jobs;
@sblmnl
sblmnl / ChugKnownPlaintextAttack.cs
Last active July 19, 2022 10:12
Known plaintext attack against the Chug encryption algorithm
using ChugSharp;
using ChugSharp.PaddingAlgorithms;
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
struct Permutation
{
public byte Key { get; set; }
public byte[] Data { get; set; }
@sblmnl
sblmnl / debby.py
Last active November 10, 2019 02:26
Recursive package downloader for Debian
"""
A Debian package downloader that downloads all package
dependencies and sub-dependencies from packages.debian.org.
Author: https://github.com/sblmnl
License: MIT
Date Created: 2019-02-26 (YYYY-MM-DD)
Sample Usage:
python debby.py stretch amd64 gnome,gcc,python3
@sblmnl
sblmnl / keybase.md
Created July 6, 2019 20:04
Keybase proof

Keybase proof

I hereby claim:

  • I am sblmnl on github.
  • I am sblmnl (https://keybase.io/sblmnl) on keybase.
  • I have a public key ASBabUw3LNPccZyK5Zimfarm2UR06mhQomCRVXrRXgq8lAo

To claim this, I am signing this object: