Custom Shift Cypher Generator
Page 1 of 1
Custom Shift Cypher Generator
Vid Link
jnet.sytes.net/rumble/cypher/index.php
https://rumble.com/vg30yj-bash-unshift-cypher-script-reup.html
Rumble("play", {"video":"vdgu3z","div":"rumble_vdgu3z"});
First setup figlet
Here is the bash script, have fun!
Make executable
Then Run
It will ask for the phrase you want to be shifted!
You also will be asked to put in the shift value, for example if you want the key of E, use the number 4.
As you can see above, you can put these values in as arguments.
jnet.sytes.net/rumble/cypher/index.php
https://rumble.com/vg30yj-bash-unshift-cypher-script-reup.html
Rumble("play", {"video":"vdgu3z","div":"rumble_vdgu3z"});
First setup figlet
- Code:
sudo apt install -y figlet
Here is the bash script, have fun!
- Code:
#!/bin/bash
# (c) J~Net 2021
# jnet.sytes.net
#
# https://jnet.forumotion.com/t1731-custom-shift-cypher-generator#2680
#
# ./custom_rotate.sh hello 5
#
# P.S you will need figlet installed for full experience!
#
red=`tput setaf 1`
green=`tput setaf 2`
bluealt=`tput setaf 3`
blue=`tput setaf 4`
reset=`tput sgr0`
echo -e "${green}Welcome To Custom Shift Cypher Generator By"
echo -e "${blue}"
echo "(c)J~Net 2021" | figlet
#
if [ -z "$1" ]
then
read -p "Enter Phrase : " phrase
else
phrase=$1
fi
#
# Convert upper case to lower!
val=$(echo "$phrase" | tr '[:upper:]' '[:lower:]') # You can reverse this and make it all upper case!
phrase=$val
#
if [ -z "$2" ]
then
read -p "Enter Number To Rotate By (Less than 26) For Example Key E=4: " rotat
else
rotat=$2
fi
#
#rotat=$rotat-1
Frotat=$((rotat - 1))
#
dual="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
# The next two lines have been commented out but could be hardcoded!
#phrase='hello there'
#rotat=13
newphrase=$(echo $phrase | tr "${dual:0:26}" "${dual:${rotat}:26}") #Frotate also could be used!
#
echo -e "${blue}"
echo "New Cypher With Key Shift (Shift Rotation : $rotat)"
# Show key shift to reverse this generator 26- the key = the reverse shift key)
undo=$((26 - $rotat))
echo "Shift Key To Reverse Is: $undo"
echo ""
echo ${newphrase}
Make executable
- Code:
sudo chmod +x *.sh
Then Run
- Code:
./custom_rotate.sh hello 5
It will ask for the phrase you want to be shifted!
You also will be asked to put in the shift value, for example if you want the key of E, use the number 4.
As you can see above, you can put these values in as arguments.
Last edited by jamied_uk on 25th April 2021, 23:02; edited 9 times in total
Re: Custom Shift Cypher Generator
Working Example:
Key of E (Shift Of 4)
Output:
New Cypher With Key Shift (Shift Rotation : 4)
soap
Key of E (Shift Of 4)
- Code:
./custom_rotate.sh OKWL 4
Output:
New Cypher With Key Shift (Shift Rotation : 4)
soap
Re: Custom Shift Cypher Generator
Unshift Script
- Code:
#!/bin/bash
# (c) J~Net 2021
# jnet.sytes.net
#
# https://jnet.forumotion.com/t1731-custom-shift-cypher-generator#2680
#
# ./custom_unrotate.sh "hello" "5"
#
# P.S you will need figlet installed for full experience!
#
red=`tput setaf 1`
green=`tput setaf 2`
bluealt=`tput setaf 3`
blue=`tput setaf 4`
reset=`tput sgr0`
echo -e "${green}Welcome To Custom UnShift Cypher By"
echo -e "${blue}"
echo "(c)J~Net 2021" | figlet
#
if [ -z "$1" ]
then
read -p "Enter Phrase : " phrase
else
phrase=$1
fi
#
# Convert upper case to lower!
val=$(echo "$phrase" | tr '[:upper:]' '[:lower:]') # You can reverse this and make it all upper case!
phrase=$val
#
if [ -z "$2" ]
then
read -p "Enter Number To Rotate By (Less than 26) For Example Key E=4: " rotat
else
rotat=$2
fi
#
#rotat=$rotat-1
undo=$((26 - $rotat))
Frotat=$((rotat - 1))
#
dual="abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz"
# The next two lines have been commented out but could be hardcoded!
#phrase='hello there'
#rotat=13
newphrase=$(echo $phrase | tr "${dual:0:26}" "${dual:${undo}:26}") #Frotate also could be used!
#
echo -e "${blue}"
echo "Cypher With Shift Of $rotat With (Undo Shift Rotation : $undo)"
# Show key shift to reverse this generator 26- the key = the reverse shift key)
echo ""
echo ${newphrase}
Similar topics
» Bash Fibonacci Sequence Generator
» Custom Notifcations & Custom Call Music For Samsung S6 Android
» Python Cypher Script
» Linux Bash 1000 Prime Number Generator
» PHP Random Password Generator
» Custom Notifcations & Custom Call Music For Samsung S6 Android
» Python Cypher Script
» Linux Bash 1000 Prime Number Generator
» PHP Random Password Generator
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum