blob: d69b194f9a79524749bb826a36eda82fa710cd9c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Substitutition scheme of Caesar cipher
// Move scilab to current file directory
[u,t,n] = file()
n = strcat(n)
file_name = basename(n)+fileext(n)
file_name = strcat(file_name)
ind=strindex(n,file_name)
path = part(n,1:ind-1)
chdir(path)
exec("Chapter_2.sci",-1)
a = ascii('A')
pt = "I LOVE YOU"
printf("Plaintext:\n\t%s\n",pt)
//Encryption using encrypt_caesar function from dependency file
printf("Encrypted text:\n\t%s",encrypt_caesar(pt))
// A scheme for codifying messages
//(replacing each alphabet with an alphabet three places down the line)
|