Skip to content

Instantly share code, notes, and snippets.

View gregorygaines's full-sized avatar
🏠
Working from home

Gregory Gaines gregorygaines

🏠
Working from home
View GitHub Profile
@gregorygaines
gregorygaines / PasswordGenerator.java
Last active April 13, 2022 18:35
Simple Java Password Generator
import java.security.SecureRandom;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public class PasswordGenerator {
// Cryptographically strong random number generator
final SecureRandom random = new SecureRandom();
type Instruction func(opcode uint32, arm *ARM7TDMI)
func DecodeARMInstruction(opcode uint32) Instruction {
switch {
case IsBranchAndBranchExchange(opcode):
return BranchAndBranchExchange;
case IsBlockDataTransfer(opcode):
return BlockDataTransfer;