No description, website, or topics provided.
Perl6
Latest commit 2be9904 Nov 1, 2016 @Emeric54 committed on GitHub Merge pull request #2 from zoffixznet/patch-1
Add mandatory "perl" META field
Permalink
Failed to load latest commit information.
examples Cesar to Caesar Apr 5, 2016
lib/Text Cesar to Caesar Apr 5, 2016
t Cesar to Caesar Apr 5, 2016
.travis.yml initial commit Apr 3, 2016
LICENSE add LICENSE Apr 3, 2016
META.info Add mandatory "perl" META field Oct 26, 2016
README.md fix spelling: fonctions -> functions Apr 21, 2016

README.md

Text::Caesar

Synopsis

use v6;

use Text::Caesar;

my Str $secret = "I'm a secret message.";
my Str $message = encrypt(3, $secret);
say $message;

Installation

To install it using Panda (a module management tool bundled with Rakudo Star):

$ panda install Text::Caesar

Description

This module allows you to use 4 functions.

You can encrypt a message :

use v6;

use Text::Caesar;

my Str $secret = "I'm a secret message.";
my Str $message = encrypt(3, $secret);
say $message;

You can decrypt a message :

my Str $secret = 'LPDVHFUHWPHVVDJH'
my Str $message = decrypt(3, $secret);
say $message;

You can encrypt (or decrypt) a file :

encrypt-from-file($key, $origin, $destination)

This code will encrypt $origin's text into the $destination file.

Author

Emeric Fischer fischer.emeric@gmail.com