Adilol

Joker Encryption - Final r3

Aug 8th, 2011
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.97 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text.RegularExpressions;
  5. using System.Text;
  6.  
  7. namespace Joker.Encryption
  8. {
  9. /*
  10.  Credits
  11.  * Programmed by Cobe Makarov
  12.  * Intended for Adil Hafeez
  13.  * Copyright 2011
  14.  * GNU Licensed
  15.  */
  16.     class JE
  17.     {
  18.         public void Main(string[] args)
  19.         {
  20.             Console.WriteLine("Key?");
  21.             string LOL = Console.ReadLine();
  22.             string O = Start(LOL);
  23.             Console.WriteLine("{0}", O);
  24.             Console.WriteLine("Would you like to decrypt {0}?", O);
  25.         }
  26.         public string Start(string Key)
  27.         {
  28.             string Encrypted = Key.Replace("a", "#%").Replace("b", "[%").Replace("c", "^%").Replace("d", "]%").Replace("e", "~%")
  29.                 .Replace("f", "_%").Replace("g", "*%").Replace("h", "{%").Replace("i", "}*").Replace("j", "|%").Replace("k", "<%")
  30.                 .Replace("l", "!%").Replace("m", "£%").Replace("n", "<_").Replace("o", "[#").Replace("p", "*+").Replace("q", "~[")
  31.                 .Replace("r", "€>").Replace("s", "'^").Replace("t", "\\|").Replace("u", "~_").Replace("v", "?'").Replace("w", "@&")
  32.                 .Replace("x", "£&").Replace("y", ":$").Replace("z", "$£");
  33.  
  34.             return Encrypted;
  35.         }
  36.  
  37.         public string Rewind(string Key)
  38.         {
  39.             string Encrypted = Key.Replace("#%", "a").Replace("[%", "b").Replace("^%", "c").Replace("]%", "d").Replace("~%", "e")
  40.                 .Replace("_%", "f").Replace("*%", "g").Replace("{%", "h").Replace("}*", "i").Replace("|%", "j").Replace("<%", "k")
  41.                 .Replace("!%", "l").Replace("£%", "m").Replace("<_", "n").Replace("[#", "o").Replace("*+", "p").Replace("~[", "q")
  42.                 .Replace("€>", "r").Replace("'^", "s").Replace("\\|", "t").Replace("~_", "u").Replace("?'", "v").Replace("@&", "w")
  43.                 .Replace("£&", "x").Replace(":$", "y").Replace("$£", "z");
  44.  
  45.             return Encrypted;
  46.         }
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment