Skip to content

Instantly share code, notes, and snippets.

View DaaaaanB's full-sized avatar

Daniel Pieczewski DaaaaanB

  • Magna International
  • Ontario, Canada
View GitHub Profile
@DaaaaanB
DaaaaanB / AES_Example.go
Last active December 11, 2023 14:05 — forked from mickelsonm/main.go
A quick example of basic AES encryption using the Golang AES library.
/*
* FILE : AES_Example.go
* PROJECT : INFO-1340 - Block Ciphers
* PROGRAMMER : Daniel Pieczewski, ref: https://github.com/mickelsonm
* FIRST VERSION : 2020-04-12
* DESCRIPTION :
* The function(s) in this file make up example code for encryption and decryption of a block of text
* using the Golang standard library AES implementation using the Cipher Feedback mode of encryption (CFB).
* DISCLAIMER: There is no way that this a secure implementation of AES. This is only for my personal learning.
* So help you God if this ends up in some commercial application.
@DaaaaanB
DaaaaanB / init.ps1
Created April 15, 2020 19:17
Powershell script to automate the creation of a project.
param (
#Take in a string as the desired path and name for the directory
[string]$path
)
# Pipe anything you don't want printed to the shell into Out-Null
# Create the directoies:
New-Item $path -ItemType Directory | Out-Null
New-Item $path/src/ -ItemType Directory | Out-Null
New-Item $path/bin/ -ItemType Directory | Out-Null