Camelia

Perl 6 Maven

Encrypting Passwords in Perl 6 using crypt

There are several Perl 6 modules to provide one-way encryption of passwords.

I think Crypt::Bcrypt or Crypt::Argon2 would be the recommended ones to use, but currently they are both broken due to a dependency being broken. In the meantime, let's explore how the encryption could work using Crypt::Libcrypt.


Encrypting Passwords in Perl 6 using crypt


Getting started with Rakudo Perl 6 in a Docker container


Getting started with Rakudo Perl 6 in a Docker container


Number guessing game in Perl 6

This is the Perl 6 solution to the exercise which is the beginning of a game called the Number Guessing game.


Number guessing game in Perl 6


push vs. append on arrays in Perl 6

push treats the supplied parameters as individual entities and pushes them onto the original array without flattening them.

append (introduced new after 2015.09 release) will flatten the supplied array - if there was only one array supplied, but will reat them as individual entities if more than one arrays are supplied.


push vs. append on arrays in Perl 6


Installing Rakudo Perl 6

Unless you want to actually develop Rakudo itself, the recommendation is to install the Rakudo Star package. It contains the Rakudo compiler, documentation, and some extra modules. It can automatically build MoarVM, so you don't need to worry about that.

Windows users are even more spoiled, as the Rakudo development team provides ready-made binaries of Rakudo Star in msi format.


Installing Rakudo Perl 6


Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: