Advertisement
Guest User

Encryption

a guest
Dec 11th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. using system;
  2.  
  3. namespace encryption
  4. {
  5. class lock
  6. {
  7. Public static void Main(string[] arts)
  8. {
  9. string text = System.IO.File.ReadAllText(@"location of file");
  10.  
  11. String text1 = (int)text;
  12. int encrypt1 = text1 + 23;
  13. int encrypt2 = encrypt1 - 19;
  14. int encrypt3 = encrypt2 - 8;
  15.  
  16. int encrypted = encrypt3;
  17.  
  18. System.IO.File.WriteAllText(@ "location of file.txt", encrypted;
  19.  
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement