Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#tool request ? #1

Open
MUWASEC opened this issue Jun 18, 2019 · 0 comments
Open

#tool request ? #1

MUWASEC opened this issue Jun 18, 2019 · 0 comments

Comments

@MUWASEC
Copy link

MUWASEC commented Jun 18, 2019

Tools for Crypto/MorseCode

script :

A='._'
B='_...'
C='_._.'
D='_..'
E='.'
F='.._.'
G='__.'
H='....'
I='..'
J='.___'
K='_._'
L='._..'
M='__'
N='_.'
O='___'
P='.__.'
Q='__._'
R='._.'
S='...'
T='_'
U='.._'
V='..._'
W='.__'
X='_.._'
Y='_.__'
Z='__..'
zero	='_____'
one		='.____'
two		='..___'
three	='...__'
four	='...._'
five	='.....'
six		='_....'
seven	='__...'
eight	='___..'
nine	='____.'
morse_code="_... . ._.. ._ .___ ._ ._. _._. _ .._. / _... ._ ._. . _. __. / __.. . ._. ___ _... _.__ _ . / .. _. .. / _. ._ __ ._ _. _.__ ._ / __ ___ ._. ... . / _._. ___ _.. ."
print("Encoded Morse : %s" % format(morse_code))
text=morse_code.split(" ")
morse_decode=""
for i in text:
	if i == A:
		morse_decode+='A'
	elif i == B:
		morse_decode+='B'
	elif i == C:
		morse_decode+='C'
	elif i == D:
		morse_decode+='D'
	elif i == E:
		morse_decode+='E'
	elif i == F:
		morse_decode+='F'
	elif i == G:
		morse_decode+='G'
	elif i == H:
		morse_decode+='H'
	elif i == I:
		morse_decode+='I'
	elif i == J:
		morse_decode+='J'
	elif i == K:
		morse_decode+='K'
	elif i == L:
		morse_decode+='L'
	elif i == M:
		morse_decode+='M'
	elif i == N:
		morse_decode+='N'
	elif i == O:
		morse_decode+='O'
	elif i == P:
		morse_decode+='P'
	elif i == Q:
		morse_decode+='Q'
	elif i == R:
		morse_decode+='R'
	elif i == S:
		morse_decode+='S'
	elif i == T:
		morse_decode+='T'
	elif i == U:
		morse_decode+='U'
	elif i == V:
		morse_decode+='V'
	elif i == W:
		morse_decode+='W'
	elif i == X:
		morse_decode+='X'
	elif i == Y:
		morse_decode+='Y'
	elif i == Z:
		morse_decode+='Z'
	elif i == zero:
		morse_decode+='0'
	elif i == one:
		morse_decode+='1'
	elif i == two:
		morse_decode+='2'
	elif i == three:
		morse_decode+='3'
	elif i == four:
		morse_decode+='4'
	elif i == five:
		morse_decode+='5'
	elif i == six:
		morse_decode+='6'
	elif i == seven:
		morse_decode+='7'
	elif i == eight:
		morse_decode+='8'
	elif i == nine:
		morse_decode+='9'
	else:
		morse_decode+=i
print("Decoded Morse : %s" % format(morse_decode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant