Ready to Start Your Career?

Updated Tutorial: Using Juliar's Encryption Module

Rattar 's profile image

By: Rattar

May 20, 2016

Updated Tutorial: Using Juliar's Encryption Module - CybraryWelcome to the second version of my Juliar Encryption Module tutorial...The Juliar language has matured a lot since my last tutorial, so I decided to update it.In this tutorial, we'll be learning several new security commands recently introduced to the Juliar Encryption Module. In order to follow this tutorial, you must have the latest version of Juliar files on your computer.  You can download them at: www.github.com/juliarLang/juliarLang/juliarOnce you've extracted the files, go to the "WebClient" folder and double-click on JuliarServer.exe if you're on Windows. If you're on Windows, a browser window should appear with a page stating "Welcome to Juliar." Drag and drop the files to the Apache "www" folder if you're on Linux.For this exercise, we'll  use Juliar interpreter.Type the following into the interpreter:

*import encryption *

This command will import encryption module. If everything went correctly, you should see:

Successfully imported module 'encryption'

That means we imported everything correctly! If you see an error...then you probably did something wrong or you're reading this guide at a future time, where the structure has changed. Let's view all encryption commands by typing:

*commands=encryption *

We should get a list of commands. At the time of writing this tutorial, I get the following commands:

*affine * >> IMPORTED from encryption level: 4*cipherreverse * >> IMPORTED from encryption level: 4*decrypt * >> IMPORTED from encryption level: 4*encrypt * >> IMPORTED from encryption level: 4*l33tencode * >> IMPORTED from encryption level: 4*md5 * >> IMPORTED from encryption level: 4*password * >> IMPORTED from encryption level: 4*rot * >> IMPORTED from encryption level: 4*subcipher * >> IMPORTED from encryption level: 4*unaffine * >> IMPORTED from encryption level: 4*unrot * >> IMPORTED from encryption level: 4*unsubcipher * >> IMPORTED from encryption level: 4

 Let's start with l33tencode. l33tencode will encode your words into l33tspeak. It's useful for quickly generating l33t language.

Example:*l33tencode hello *

Produces:{-}3|10

 md5 will encode your words into md5 codec.

Example:*md5 hello *

Produces:12eca6f25b6b7b5d14f2bc45cd90cc4

 encrypt will encrypt your words using blowfish. To set the key specify as a param:

Example:*encrypt=key hello *

Produces:E922208C867786F3

 We can decrypt this function by doing this:

Example:*decrypt=key E922208C867786F3 *

Produces:Hello

NOTE: You must have a correct key, otherwise you'll get gibberish. rot uses a simple rotation cipher (i.e. Caesar cipher) to rotate words by amount specified:

Example:*rot=3 hello *

Produces:khoor

 unrot reverses the rotation cipher:

Example:*unrot=3 khoor *

Produces:hello

 password generates a secure password:

Example:*password *

 Here are some other fun ones:*affine * and *unaffine * uses the affine algorithm to encrypt/decrypt words.

Example:

*affine=3 hello *

Produces:

duppy

Example:

*unaffine=3 duppy *

Produces:

hello

 *subcipher * and *unsubcipher * is a substitution cipher:

Example:

*subcipher=l,a hello *

Produces:

heaao

Example:

*unsubcipher=a,l heaao *

Produces:

hello

*cipherreverse * reverses the cipher:

Example:

*cipherreverse hello *

Produces:

olleh

 Feel free to add other cipher suggestions, and I'll add them to the next module.Updated Tutorial: Using Juliar's Encryption Module - Cybrary
Schedule Demo