Encryption methods
-
Ok I pulled this from www.aspnettutorials.com I want to know if I can take this and make it a strong encryption method. I wanna be able basically to create a page that allows a text box then it encrypt it and saves it to the server. Then later another user can connect to the same page unencrypted and view what was written. Does that make any sense? I all so want to make the original page that the clear text is being sent to, encrypted as not to have it clear text method.I would post the whole script but it is very long. http://aspnettutorials.com/tutorials/advanced/string-encrypt-vb.aspx Thanks!
-
Ok I pulled this from www.aspnettutorials.com I want to know if I can take this and make it a strong encryption method. I wanna be able basically to create a page that allows a text box then it encrypt it and saves it to the server. Then later another user can connect to the same page unencrypted and view what was written. Does that make any sense? I all so want to make the original page that the clear text is being sent to, encrypted as not to have it clear text method.I would post the whole script but it is very long. http://aspnettutorials.com/tutorials/advanced/string-encrypt-vb.aspx Thanks!
Hey Jackeli "Strong encryption" methods are not something we just sit and come up with, There are cryptographers and cryptanalysts that this is what they're doing. They come up with "Strong Encrpytions" (and try to break them...). So if you want to use a "strong encryption", you just need to learn how to use one. I'll try to explain a little bit about it, but before you get down to the code you need to plan a little bit how you're going to do what you want, that is, encrypt the given text in such a way only certain people will be able to see it. I think what you are looking for is called "Symmetric encryption" (There are "ASymmetric encryptions" as well), so I'll explain a little bit about it (not technical stuff, but the idea, so you will understand better what you're going to do). - "Symmetric encryption" means that if you encrypt text with a certain KEY, we need that exact KEY to decrypt. What is a KEY? it can be a password, passphrase, a file. In other words, a KEY is an array of bytes (byte[]). using this KEY we encrypt and decrypt the text. So if we'll look at the page you want to write, it means, that I can write a certain sentence, like: "This is my hidden message", and encrypt is using the password "Secret Password!". Now, if I want you to read my message, you need to know the password. So I will need to tell you the password somehow, only then you can go to the website, and use the password "Secret Password!" and reveal the encrypted text: "This is my hidden message". This is the tip of the ice burg. Today's standard symmetric encryption is called "AES", and C# libraries are giving you a method that is doing just what you want (There are many other methods, but I think you should focus one). Look for it a little bit in codeproject and you will find plenty of examples on how to do it, and other stuff I didn't quite got into in this example (the more technical stuff). I hope it helped! Good Luck!
-
Ok I pulled this from www.aspnettutorials.com I want to know if I can take this and make it a strong encryption method. I wanna be able basically to create a page that allows a text box then it encrypt it and saves it to the server. Then later another user can connect to the same page unencrypted and view what was written. Does that make any sense? I all so want to make the original page that the clear text is being sent to, encrypted as not to have it clear text method.I would post the whole script but it is very long. http://aspnettutorials.com/tutorials/advanced/string-encrypt-vb.aspx Thanks!
If you read that article it points out quite clearly that it is not at all a good, secure method of encryption. It is a very simple substitution cypher which would be cracked in seconds by anyone with enough reason to do so and the right software. If you want to learn more about encryption the .net framework has a number of classes you can utilise. I suggest a good google search[^] will provide you with tons of information.