---
# System prepended metadata

title: 'BASIC WEB CHALLENGE Day 6 '

---

Hello guys i am back again with day 6, here we go

**STEP 1:** Read the challenge description as it say "Network Security Sam has encrypted his password. The encryption system is publically available and can be accessed with this form:" 

![](https://hackmd.io/_uploads/rJSp7Pcs3.png)


which mean that were have already being given an encrypted pass:**553ihfj**

The main here is that we need to understand how the encryption field works and if we successfull understands how it works it will be easy for us to decrypt the encypted password which sam think have secured it with his encryption alg, and finally we can solve the challenge easy simple as that hacker :+1: 

**STEP 2:** lets try to encrypt **12345** and see how this works

plaintext(**12345**) = encrypted(**13579**)

This mean that the first number remain the same, but the rest changes as follows 1+2=3,3+2=5,3+4=7,4+5=9 and so on, and when you try to input some special char as !!!!!! = '!"#$%'
,which mean that also special char are being incremented

lets write a simple script to help us do this and recovery the password from being ciphertext

![](https://hackmd.io/_uploads/HyNqfvcih.png)

And once we run this script, your can make the script excutable and run it, but am not going to waste my time doing such an easy job, am just going to run it with built-in bash 

![](https://hackmd.io/_uploads/HygMXw9j2.png)

And there we managed to recovery the password from sam encryption method

**Finally** once we submit this plaintext password,we solve the challenge

![](https://hackmd.io/_uploads/Hkz5Qvcsn.png)

TH@NK YOU GUYS ,LETS MEET ON DAY 7



