Skip to content

Instantly share code, notes, and snippets.

View Aaron-A-zz's full-sized avatar
🏠
Working from home

Aaron Aaron-A-zz

🏠
Working from home
View GitHub Profile
@Aaron-A-zz
Aaron-A-zz / ViewController.swift
Last active February 6, 2016 17:20
CryptoSwift test code
let key = "1234567890123456" // key
let iv = "1234567890123456" // random
let message = textView.text
let aes = try! AES(key: key, iv: iv)
// encrypt
let encrypt = try! aes.encrypt(message.dataUsingEncoding(NSUTF8StringEncoding)!.arrayOfBytes(), padding: PKCS7())
print(encrypt)
@Aaron-A-zz
Aaron-A-zz / gist:fc83296741cb79f1eac9
Last active August 29, 2015 14:18
Lesson 2 Visuals and UIView @Thinkful
// Playground - noun: a place where people can play
import UIKit
import XCPlayground
class Shape: UIView {
var color: UIColor
init(color: UIColor) {