Implement AES Strength Encryption With JavaScript

I recently started playing around with the Dropbox Datastore JavaScript API and decided that I wanted an extra layer of security in the data I store on the Dropbox server.  I figured the best way to accomplish this would be to encrypt all data in my application before syncing.

It took me a while to find an encryption library that I liked, but in the end, I chose the JavaScript library Forge.  This library has plenty of cryptography tools that extend beyond just AES encryption, thus making it very worthy to check out.

(more…)

Generate Time-Based One-Time Passwords With JavaScript

I recently released an iOS and Android application called OTP Safe to iTunes and Google Play.  OTP Safe makes use of the time-based one-time password (TOTP) algorithm commonly used with two-factor authentication (2FA).  How exactly, does this algorithm work, and how can we make it work with JavaScript?

Using the following resources as our framework, we can make use of the TOTP algorithm quickly and easily:

  • http://blog.tinisles.com/2011/10/google-authenticator-one-time-password-algorithm-in-javascript/
  • https://code.google.com/p/google-authenticator/source/browse/libpam/totp.html?r=a852f172b62bf58d436e942e59f6439224b1477d

(more…)

Aggregate SQL Data From Multiple Rows Into A Single Row

Recently I found myself needing to aggregate my multiple row SQL data into a single row.  This was because the parent data was more useful to me than the multiple row’d data, but I still needed to include it because it was still an essential part of my report.  The data looked something like the following:


firstname lastname department
Nic Raboy Engineering
Maria Campos Emergency Room
Nic Raboy Operations
Nic Raboy Design

(more…)

Syncing Data With Dropbox Using Ionic Framework

Storing or syncing data remotely is often a need in modern apps.  This generation is all about the cloud and how to be a part of it.  IonicFramework is a great way to make hybrid cross platform mobile Android and iOS applications, but how about sharing data between them?  Dropbox is one of a few cloud storage services that happens to have great APIs and documentation.

The following won’t necessarily show you the best way for syncing data in IonicFramework using Dropbox’s Datastore API, but it will show you how I did it with success.

(more…)

Updating Your Ionic Framework Project and CLI

The developers at Ionic Framework are constantly releasing updates to both their CLI and base install.  With great new features and fixes in every release, you’re going to find yourself wanting to upgrade frequently.  But how does one do this?  As of right now there is no magical all in one ionic update command.

These are the steps to update your CLI and base library for a given project.

(more…)

Use A Broadcast Receiver For Background Services In Android

As an Android developer, you’ll often run into the scenario where you need to perform tasks and display notifications for your app in the background.

To retain battery power on our users device we are going to run background tasks using a broadcast receiver.  This will prevent a thread from constantly running in the background draining the battery quickly over time.  Instead, the task will be run on defined intervals of the alarm.

(more…)

Great Tools To Improve Android Development

I’ve been developing Android apps for a few years now.  During this time, I’ve had the opportunity to try a huge selection of software, some of which didn’t work as well as I’d hoped and some of which that exceeded my expectations.

Although these tools are my personal preference, I am confident they will change your Android development strategies and how you develop your apps.

(more…)