Encryption and Salting in Sketchware
Description:In this video, I have explained what is data encryption, where we find the use of data encryption, how data encryption is useful and how to use it in Sketchware. This maintains the privacy of your data or information. It is used in chatting apps made in Sketchware. The data gets converted to unreadable code language within the device before getting stored in cloud storage of that app. After retrieving data, the encryption is reversed. I could not show or use salting in the program as it was a simple encryption. Salting works out in complex encryption where the data character are simultaneously interchanged. I hope you will like it.
Subscribe to support me.
Thanks for watching.
Bye.👋
Code in onClick:
int L = str.length();
int v = (int)s;
for(int I =0;I<L;I++)
{
char ch1 = str.charAt(I);
int ch = ch1;
if(Character.isUpperCase(ch1))
{ ch = ch + v;
if(ch>90)
{
ch = ch - 26;
}
}
else if(Character.isLowerCase(ch1))
{ ch = ch + v;
if(ch>122)
{
ch = ch-26;
}
}
str1 = str1+(char)ch;
}
Code to return back data from encrypted code:
int L = str.length();
int v = (int)s;
for(int I =0;I<L;I++)
{
char ch1 = str.charAt(I);
int ch = ch1;
if(Character.isUpperCase(ch1))
{ ch = ch - v;
if(ch<65)
{
ch = ch + 26;
}
}
else if(Character.isLowerCase(ch1))
{ ch = ch - v;
if(ch<97)
{
ch = ch+26;
}
}
str1 = str1+(char)ch;
}

Comments
Post a Comment