Thursday, April 19, 2018

MacOS: App Icons are missing

Open terminal, and type:

sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \
sudo rm -rf /Library/Caches/com.apple.iconservices.store
killall Dock

Wednesday, April 11, 2018

iOS : Choose the crypto flow

Even though there are multiple tools for doing just that, not all of those tools are equal. By just taking some random algorithm from CommonCrypto and using StackOverflow example to implement it, you'll fail. Remember, cryptography is hard (read this essay and this presentation), and it's very easy to get it wrong.

So, you need to make your choice consciously. While thinking about your cryptographic tools, it's very useful to keep your goal in mind:

protect the sensitive data in certain context from modification and 3rd party eyes, and be able to trust sender of the data.