Encrypting Text With AES-256 In PHP

This post is the first part of a series about symmetric encryption with AES-256 in PHP. Table of contents: Encrypting text Decrypting text Encrypting files Decrypting files There are plenty usecases for having encryption in your application, but be aware of the golden rule of cryptography: If you don't know what you're

By |2021-01-23T23:42:17+01:00September 28th, 2018|0 Comments

How To Build A QR-Code-Generator In PHP

I'm sure all of you know Quick Response Codes (or QR-Codes for short). They're everywhere and a great way to encode information that's hard to read and/or remember for humans in a way machines can process. There are plenty of online services that will generate QR-codes for us. But what if we wanted to

By |2021-01-23T23:42:18+01:00September 26th, 2018|0 Comments

How To Center A DIV horizontally and vertically

When searching the web for ways to center a DIV I found a ton of suggestions. Many kind of solved one problem but at the same time introduced others, some made the code unreadable and others straight up didn't work at all. Eventually I got frustrated and decided to tinker around for a couple

By |2021-01-23T23:42:18+01:00September 25th, 2018|0 Comments

How To Enable Compression In Apache2

When running a professional website, one of the major things that you want to do, is making it as fast as possible! Fast loading times lead to more user engagement, satisfied viewers/customers and higher conversion rates. In addition, provided you deliver good content, the faster your page loads, the higher it's ranked in the

By |2021-01-23T23:42:18+01:00September 21st, 2018|0 Comments

How To Implement Google Sign-In To Your Website

You've probably seen this button around the web: Websites that use this button let you login using your Google Account as an alternative to creating an account on that particular page. Why use Google Sign-In? In the ever pacing world of the internet, to get customers to use your website, it

By |2021-01-23T23:42:18+01:00September 19th, 2018|0 Comments

Hello NodeJS | Authentication with PassportJS

The so-called 'Login-System' that we put up so far isn't quite... secure, to say the least. The way it is currently implemented, anyone could come by, 'login' and have an account created. Let's toughen that up and replace it with some proper authentication mechanisms. First things first - we need more packages! We

By |2021-01-23T23:42:18+01:00September 17th, 2018|0 Comments
Go to Top