Skip to content

ludakr1ss/DAT234G29

Repository files navigation

DAT234G29

Mandatory assignment 1

The file ipv4.sh is the script for mandatory assignment 1!

Mandatory assignment 2

1)

File: NyCaesar.ps1

How to use Caesar Cipher:

Important!! Download script to your PC -> open up in Powershell ISE -> File - Run script -> Write in Powershell ISE terminal: CaesarCipher 'your text here' (key 1-26). Ex: "CaesarCipher 'PowershellIsAwesome' 13"

If you want to decode write: CaesarCipher 'Text to decode' key(13) -Decode. Ex: "CaesarCipher 'CbjrefuryyVfNjrfbzr' 13 -Decode"

alt text

2)

File: ScytaleCipher.ps1

How to use Scytale Cipher:

Step 1. Open script in PowerShell

Step 2. Enter key

Step 3. Enter phrase

Step 4. Choose to encrypt or decrypt e/d

The "PSOHWEELRL" phrase from the assignment is decrypted into "POWERSHELL".

Mandatory Python

  1. Visit the site https://links.datapor.no (Lenker til en ekstern side.) with the use of requests and print out the source code.

  2. How many links are using http vs https , with the use of regex.

  3. Print out all the unique TLD.

  4. print out all the unique hostname for each url.

  5. Find all the unique html tags, with the use of regex

  6. Visit each of the links found on https://links.datapor.no (Lenker til en ekstern side.), and visit each of the links and print out the title of the site hint: look for <title> or tags

About

Repository for gruppe 29 i DAT234 på UiA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published