+ 7

Anyone can teach me how to encrypt?

I feel kinda inferior and stupid here. I see many codes where the output is brought about my some kind of encryption, but whenever I try it, I simply can't. How do you encrypt? How? Please help me. Some examples of encryption in Java: https://code.sololearn.com/c65al3P8qlAp/?ref=app https://code.sololearn.com/cKpJv8d3wz68/?ref=app https://code.sololearn.com/cv0EnkQ8dxfP/?ref=app Please help me.

21st Sep 2017, 6:40 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
17 odpowiedzi
+ 12
it's not encryption really just using ascii character codes . the 1st code just decodes base64 string to plain text. https://code.sololearn.com/cJviZDwqlJhg/?ref=app in 2nd code all it does is get next characters in place. https://code.sololearn.com/cOv67FFa8g4i/?ref=app
22nd Sep 2017, 10:12 AM
Lord Krishna
Lord Krishna - avatar
+ 12
@Amrit okay then good luck 🍀with your endeavours 👍😎 fun fact: I had used a ASCII character cheat sheet to create the character shift code in ruby :)
22nd Sep 2017, 2:49 PM
Lord Krishna
Lord Krishna - avatar
+ 7
@Amrit can you provide the link to the encrypted code mate? just like to see it, if you don't mind.
21st Sep 2017, 10:16 AM
Ipang
+ 6
@Ipang See the updated question.
22nd Sep 2017, 8:23 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 4
Do you have any examples? You can't just "encrypt code" because you'd need to decrypt it before running it.
21st Sep 2017, 7:48 AM
Schindlabua
Schindlabua - avatar
+ 4
Well you can just follow the code to see what happens. A char[] is more or less just a string, and each character has a so-called "ascii" or "utf-8" "character code", a number, that represents it. Uppercase "A" is 65, for example. So all you need to do is google "text to ascii code converter" and you are good. The third example uses binary, which is like our 10-digit-numbers (1,2,3,4,5,6,7,8,9,0) but using just two digits (0,1).
22nd Sep 2017, 9:00 AM
Schindlabua
Schindlabua - avatar
+ 4
@Schindlabua, I get all of that, my question is to help me a bit with the numbers. I understand what they did, but I need the ASCII codes for the characters.
22nd Sep 2017, 11:56 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 4
Yeah as I said, google for "text to ascii converter"! Heres the first thing that comes up when you google that: http://www.unit-conversion.info/texttools/ascii/ Paste the text you want to numberify in there and you can use that in your code.
22nd Sep 2017, 12:42 PM
Schindlabua
Schindlabua - avatar
+ 4
@Schindlabua, could you give me some image or a link to download a file which contains a table of ASCII codes? Thanks for that link. Please help me again.
22nd Sep 2017, 2:43 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 4
@LK, that's more than enough...
22nd Sep 2017, 2:46 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 4
@LK, actually I wanna create my Platinum code with some encryption. Thanks.
22nd Sep 2017, 2:49 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 3
Do you want to obfuscate it so nobody can read it?
21st Sep 2017, 7:51 AM
Stamen
Stamen - avatar
23rd Sep 2017, 5:45 PM
Pickle_Rick()
Pickle_Rick() - avatar
+ 2
hope it helps ya ; )
23rd Sep 2017, 5:47 PM
Pickle_Rick()
Pickle_Rick() - avatar
0
colding
24th Sep 2017, 3:00 AM
Genesis