<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Swift on The Dangling Pointer</title><link>https://aaron.blog/tags/swift/</link><description>Recent content in Swift on The Dangling Pointer</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 25 Apr 2017 01:05:23 +0000</lastBuildDate><atom:link href="https://aaron.blog/tags/swift/index.xml" rel="self" type="application/rss+xml"/><item><title>You're Doing AES Encryption Wrong</title><link>https://aaron.blog/youre-doing-aes-encryption-wrong/</link><pubDate>Tue, 25 Apr 2017 01:05:23 +0000</pubDate><guid>https://aaron.blog/youre-doing-aes-encryption-wrong/</guid><description>&lt;p&gt;Well, it's possible you're doing it properly ... but likely not. At CocoaConf Chicago &lt;a href="http://cocoaconf.com/chicago-2017/sessions/practical-security"&gt;Rob Napier gave a presentation&lt;/a&gt; on iOS security and highlighted his cross-platform AES encrypt/decrypt library, &lt;a href="https://github.com/RNCryptor/RNCryptor"&gt;RNCryptor&lt;/a&gt;. You'll find implementations for Swift, Objective-C, Java, PHP, C, JavaScript, Haskell, Go, and many more.&lt;/p&gt;&lt;p&gt;Do you know what password stretching, CBC, PBKDF2, and IVs are? If you've said no to any of these, you should probably look at RNCryptor.&lt;/p&gt;&lt;p&gt;Check it out!&lt;/p&gt;</description></item><item><title>UIKit Dynamics - Turning on Debug Mode</title><link>https://aaron.blog/uikit-dynamics-turning-on-debug-mode/</link><pubDate>Thu, 16 Jul 2015 15:08:18 +0000</pubDate><guid>https://aaron.blog/uikit-dynamics-turning-on-debug-mode/</guid><description>&lt;p&gt;In iOS 9 Apple has introduced a number of new shiny things for UIKit Dynamics. One of them is UIFieldBehavior which describes magnetic, electrical and spring fields of influence. Fields are hard to debug (even in real life!) so Apple decided to provide a debug mode on UIDynamicAnimator. The trick is the debug mode isn't published in the headers. Why? Who knows. They mentioned it quite plainly at WWDC 2015 and said you have to turn it on in the LLDB debugger.&lt;/p&gt;</description></item></channel></rss>