As of right now, individual users have no reason to use Ragnarok. Once can always ask a web administrator to incorporate Ragnarok into their web login system. This encryption algorithm is designed to make your data more secure without requiring you to do anything special.
Use a call to a perl script to encrypt a username and password. An example could be:
perl Ragnarok.pm --generate=upass --username='username' --password='password'
Note: It is IMPERATIVE to validate input before running this code.
If you just needed to return the username, you can run:
perl Ragnarok.pm --generate=upass --username='username' --password='password' --returnusername
Please see the [Back End Tutorial] for a tutorial on actual implementation.
Here is a sample of code that can be used as a model for the implementation (This comes from the POD).
#!/usr/bin/perl
use Ragnarok;
my $r = new Ragnarok();
# Always define the key before defining the code.
# You can't type in the code on the keypad if you can't
# get through the door :) Also, Ragnarok returns an error if you try.
$r−>properties(ABOUTKEY, $aboutKey);
$r−>properties(KEY, $r−>generate(ABOUTKEY));
$r−>properties(ABOUTCODE, $aboutCode);
$r−>properties(CODE, $r−>generate(ABOUTCODE));
my $proof = $r−>generate(PROOF);
$r−>properties(PROOF, $proof);
if ($r−>properties(IRCODE, $installcode) == E_INVALID_IRCODE) {
die "Sorry, invalid install code.";
} else {
# VALID INSTALL CODE
}
if ($r−>properties(IRCODE, $removalcode) == E_INVALID_IRCODE) {
die "Sorry, invalid removal code.";
} else {
# VALID REMOVAL CODE
}