I noticed while testing a new security module for my web interface that the password was working even when I added characters to the end of it. You see, I was trying to test the security module to ensure that when the wrong password was entered, the program would deny my access. I found the…(Continue Reading)
Tag: perl
Know thy $self
I happened to notice two errors in one very small sub that I was testing out in Perl. I should note that I made these two very small errors while rewriting a custom Perl security module. Let’s take a look at the function before I spotted the errors: # excerpt from Security3.pm sub _cust_crypt {…(Continue Reading)
Excellent books to expand programming skills.
Kotlin and Android Development featuring Jetpack – Covers a vast array of Kotlin features, with a good focus on Jetpack. This may have been the most difficult read I’ve ever encountered, but I started it with almost no understanding of app development with Kotlin, never mind Jetpack. I highly recommend this book to anyone currently…(Continue Reading)
Easy Perl Dispatch Tables with Security Levels
The vast majority of Perl scripts that I write are for managing information via HTML forms. The script will generate the form, and then process the results when the user hits submit. In order to keep track of what form the user is submitting data for, I’ve generally used a hidden form variable named “state”.…(Continue Reading)
Replicate a Firebase Real-Time Database with a simple Perl script
Here is a very simple script to replicate data from one Firebase RTD to a backup RTD. Just be sure to modify the array of root keys (@firebaseBackupKeys) to reflect your database. This version can be called from a web browser, or via a cron job. #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); print ‘Content-type: text/html’, “\n\n”; use…(Continue Reading)
Install Firebase Perl module with Bitvise SSH
Connect to your web host, then click the “New Terminal Console” button. 2. Type “cpan” at the command prompt: 3. If cpan requires configuration, select “local::lib” by pressing enter, or sudo if you have permission for the server. In my instance, my web host does not allow sudo. 4. Once cpan finishes configuration, note the…(Continue Reading)