This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Data { | |
func encryptIt() -> Data { | |
let data = self | |
let encryptor = RNCryptor.EncryptorV3(encryptionKey: encryptKey!, hmacKey: hmacKey!) | |
return encryptor.encrypt(data: data as Data) | |
} | |
func decryptIt() -> Data { | |
do { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*******AppDelegate.swift ******* | |
// | |
// AppDelegate.swift | |
// Bizzy Books | |
// | |
// Created by Brad Caldwell on 9/23/16. | |
// Copyright © 2016 Caldwell Contracting LLC. All rights reserved. | |
// |