Skip to content

Instantly share code, notes, and snippets.

View RealityRipple's full-sized avatar
🪂
If at first you don't succeed, skydiving is not for you.

Andrew Sachen RealityRipple

🪂
If at first you don't succeed, skydiving is not for you.
View GitHub Profile

Additions to AES Encryption in Zip Files

I. Foreward

AES Encryption is considered a safe encryption algorithm. However, the implementation of AES as described by the Zip file standard (see https://www.winzip.com/win/en/aes_info.html) is sorely lacking in implementation.
The issues with the implementation are not in the execution of AES-CTR itself, but with the PBKDF2 constants used by all existing compatible archiving software. Below is my attempt to improve upon the existing Zip-AES standard as best as possible without interfering with the parent Zip standard or with software that reads or writes Zip files.

II. New AES Encrypted file storage format

@RealityRipple
RealityRipple / notes.md
Created August 18, 2019 22:16
Building a Cryptocurrency Transaction (DOGE Example)

Building a Cryptocurrency Transaction

Written by Andrew Sachen (2019)

Share and Enjoy (Public Domain)

Cryptocurrency can be as confusing as it is intriguing. It can also be very dangerous. There are also environmental concerns. Those are all outside the scope of this example. This just shows you how to build a valid transaction (in Dogecoin) using only JavaScript within the browser (aside from requesting the transactions to use as Inputs and sending the completed transaction through a public API website).


Requirements

@RealityRipple
RealityRipple / login.php
Created June 21, 2019 04:53
Encrypt Passwords Over HTTP using RSA
<?php
function parseRequest()
{
if (!isset($_POST['username']) || empty($_POST['username']))
return 'You did not enter a username';
if (!isset($_POST['password']) || empty($_POST['password']))
return 'You did not enter a password';
$request = array();
$request['username'] = $_POST['username'];
$ePass = $_POST['password'];
@RealityRipple
RealityRipple / JSON-Playlist.jopl
Last active May 26, 2024 20:54
JSON Playlist File Definition
{
"Title": "Example JavaScript Object Notation Playlist File",
"Time": "00:00:10:25.845",
"Tracks":
[
{
"Title": "Track 1",
"Artist": "The Band",
"Album": "The Record",
"Time": "02:15.600",
@RealityRipple
RealityRipple / openpgp.txt
Created February 28, 2018 11:20
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:2be391ef8ef9db1e9bf546620b7c73813443493a]
@RealityRipple
RealityRipple / mantisUpdate.php
Last active May 14, 2018 20:03
PHP Script for updating MantisBT. Designed for use in a Cron job.
<?php
ini_set('display_errors',1);
ignore_user_abort(true);
error_reporting(E_ALL);
header('Content-Type: text/html; charset=utf-8');
header('Content-Encoding: none;');
$cron = $argv[1];
if ($cron != 'cron')
return('This needs to be run from CRON.');