Skip to content

Instantly share code, notes, and snippets.

@ArcaneNibble
ArcaneNibble / jlcpcb_crypto.md
Last active February 21, 2025 01:42
JLCPCB Color Silkscreen Crypto

JLCPCB Color Silkscreen Crypto

JLCPCB color silkscreen files are encrypted using AES-128-GCM and RSA-2048 with OAEP padding with SHA-256 as the hash function. Unfortunately, this means that, although it is possible for tools other than EasyEDA to create files, only JLCPCB can decrypt the resulting files.

File structure

The structure of an encrypted file is as follows:

  1. 256 bytes RSA-encrypted AES key
  2. 256 bytes RSA-encrypted GCM nonce
@esoterik
esoterik / least_significant_bit_stego.rb
Created September 18, 2018 17:36
ruby script to hide a string in an image
require 'rmagick'
require 'chunky_png'
# Simple least significant bit steganography. Hides a message in the
# least significant bit of the red channel of the image.
#
# Requires ImageMagick, Ruby 2.5, rmagick gem, chunky_png gem
#
# To encode a message:
# ruby lsb.rb encode image_file message encdoded_filename
@Neo23x0
Neo23x0 / audit.rules
Last active February 9, 2026 04:01
Linux Auditd Best Practice Configuration
# IMPORTANT!
# This gist has been transformed into a github repo
# You can find the most recent version there:
# https://github.com/Neo23x0/auditd
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/
@atoponce
atoponce / ciphers.md
Last active August 1, 2017 13:09
A list of the starting tweets for each #CipherMysteries cipher thread
@mikeybeck
mikeybeck / slack2html.php
Last active October 31, 2018 16:51 — forked from jordanmkoncz/slack2html.php
slack2html
<?php
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//