Skip to content

Instantly share code, notes, and snippets.

View JBirdVegas's full-sized avatar
:octocat:

Jon Stanford JBirdVegas

:octocat:
View GitHub Profile
@JBirdVegas
JBirdVegas / CertificatePinning.swift
Created October 14, 2020 18:27
Swift Certificate pinning example via cert.ist api
#!/usr/bin/env swift -suppress-warnings
import Foundation
import Security
import CommonCrypto
import CryptoKit
let sema = DispatchSemaphore(value: 0)
// Structure to hold the api response values we need
.loader {
position: absolute;
top: 50%;
left: 50%;
margin-left: -50px;
margin-top: -50px;
border: 16px solid #f3f3f3;
border-top: 16px solid #3498db;
border-radius: 50%;