totp

TOTP in Perl

TOTP (or Time-based One-time Password Algorithm) is an algorithm used to generate a one-time password from a previously shared key.  Now if that confused you, maybe you’re more familiar with Google Authenticator.  If you’re keen to generate an OTP in Perl, or integrate it in your web application, then the code below can be used to either generate the OTP, or to check if the OTP is valid. #!/usr/bin/perl #… Read Article →

lumia

Microsoft Continuum – First thoughts

Microsoft has released Continuum for their line of Lumia 950 phones.  Continuum is the ability to use your phone as a desktop.  By plugging the phone into a dock, you can control the phone with a regular keyboard and screen. Let’s look at the phone.  The Lumia 950 is ok.  It’s not spectacular, just ok.  It’s the first time I’m using the Windows platform (just having migrated from Android).  The… Read Article →

linkedin

Another day, another hack – LinkedIn

LinkedIn, the famous professional social networking site, was hacked in 2012.  At first, it was thought that only 6.5 million accounts were hacked.  A few weeks ago, it turns out that more than 165 million accounts have been hacked. Now the hackers did not get the password.  They got your email addresses, and the password hash.  The hash is essentially an encrypted version of the password that can not be… Read Article →

gmail

Sending emails through Gmail from Perl

Sending email through Perl can be done in many ways.  I like to simply call sendmail, but that approach is not always portable between operating systems.  For that, we use Net::SMTP.  But if you plan to send email via Gmail, normal plain ol’ port 25 SMTP won’t work.  For that, we need to switch to TLS/SSL with Authentication. But first, let’s review what the Gmail settings are. Server : smtp.gmail.com… Read Article →

TurnbullShorten

It is time to vote

July 2nd 2016 is the time we vote.  We, the people of Australia, decides who our next prime minister would be. Isn’t it amazing, that no matter who is in power, there is always something bad to be said about the man in charge.  I personally do not think that Turnbull is doing too bad of a job, but then again, I don’t agree with everything he stands for.  As… Read Article →

Williams River Holiday Park

Williams River Holiday Park

It was a great weekend camping.  We went up to Clarence Town, and spent the weekend at the Williams River Holiday Park.  The unpowered camping site cost about $22 a night. Checking in Friday was reasonably painless, although I must say the lady at the office was not the friendliest around (but hey, I didn’t go there to see her!).  They do lock the gate around 5:30 PM, so you… Read Article →

surface

Surface Pro 3

Microsoft recently launched their Surface Pro 4.  When I bought my Microsoft Surface Pro 3 last year, I had high expectations for the device. For those who don’t know, the Surface Pro 3 is a tablet, but it is also a laptop.  Unlike your normal tablets (like your Android or iPad devices), the Surface Pro actually runs Windows.  So any of your normal Windows applications and games will run on… Read Article →

key

RSA Algorithm in Perl

The RSA algorithm is very cool. It basically allows the exchange of data between two parties by using a private and public key. I’m not going to try and convince or explain what RSA is. I will however show you how to do RSA in Perl from the ground up. The Crypt::RSA module should probably be used instead. I’m not trying to reinvent this module, but rather give a practical… Read Article →

password

Solving the authentication crisis

Every day there is a news article about some website that got hacked, or some photos that got leaked.  The biggest challenge we do face, is with our passwords. Now let met get the controversial statement out of the way : A password is a good way to secure any site. But that’s not the problem.  Our problem is with our password management.  So to really make my statement valid, that… Read Article →