Advertisement
Guest User

ALL Crypo.com Encryptions Leaked

a guest
Sep 12th, 2010
2,874
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 29.17 KB | None | 0 0
  1. 'Made by pr0t0typ3
  2. 'Give Credits or Fuck Of!
  3.  Public Function Atom128_Encode(ByVal input As String) As String
  4.         input = Uri.EscapeDataString(input)
  5.         Dim key As String = "/128GhIoPQROSTeUbADfgHijKLM+n0pFWXY456xyzB7=39VaqrstJklmNuZvwcdEC"
  6.         Dim out As New System.Text.StringBuilder
  7.         Dim i As Integer
  8.         Do
  9.             Dim enc(3) As Integer
  10.             Dim chrs As Integer() = {0, 0, 0}
  11.             For b As Integer = 0 To 2
  12.                 If i < input.Length Then chrs(b) = Asc(input(i))
  13.                 i += 1
  14.             Next
  15.             enc(0) = chrs(0) >> 2
  16.             enc(1) = ((chrs(0) And 3) << 4) Or (chrs(1) >> 4)
  17.             enc(2) = ((chrs(1) And 15) << 2) Or (chrs(2) >> 6)
  18.             enc(3) = chrs(2) And 63
  19.             If chrs(1) = 0 Then
  20.                 enc(2) = 64
  21.                 enc(3) = 64
  22.             End If
  23.             If chrs(2) = 0 Then
  24.                 enc(3) = 64
  25.             End If
  26.             For Each x As Integer In enc
  27.                 out.Append(key(x))
  28.             Next
  29.         Loop While i < input.Length
  30.         Return out.ToString
  31.     End Function
  32.     Public Function Atom128_Decode(ByVal input As String) As String
  33.         Dim key As String = "/128GhIoPQROSTeUbADfgHijKLM+n0pFWXY456xyzB7=39VaqrstJklmNuZvwcdEC"
  34.         Dim out As New System.Text.StringBuilder
  35.         Dim i As Integer
  36.         Do
  37.             Dim enc(3) As Integer
  38.             Dim chrs() As Integer = {0, 0, 0}
  39.             For b As Integer = 0 To 3
  40.                 enc(b) = key.IndexOf(input(i))
  41.                 i = i + 1
  42.             Next
  43.             chrs(0) = (enc(0) << 2) Or (enc(1) >> 4)
  44.             chrs(1) = (enc(1) And 15) << 4 Or (enc(2) >> 2)
  45.             chrs(2) = (enc(2) And 3) << 6 Or enc(3)
  46.             out.Append(Chr(chrs(0)))
  47.             If enc(2) <> 64 Then out.Append(Chr(chrs(1)))
  48.             If enc(3) <> 64 Then out.Append(Chr(chrs(2)))
  49.         Loop While i < input.Length
  50.         Return out.ToString
  51.     End Function
  52.     Public Function HAZZ15_Encode(ByVal input As String) As String
  53.         input = Uri.EscapeDataString(input)
  54.         Dim key As String = "HNO4klm6ij9n+J2hyf0gzA8uvwDEq3X1Q7ZKeFrWcVTts/MRGYbdxSo=ILaUpPBC5"
  55.         Dim out As New System.Text.StringBuilder
  56.         Dim i As Integer
  57.         Do
  58.             Dim enc(3) As Integer
  59.             Dim chrs As Integer() = {0, 0, 0}
  60.             For b As Integer = 0 To 2
  61.                 If i < input.Length Then chrs(b) = Asc(input(i))
  62.                 i += 1
  63.             Next
  64.             enc(0) = chrs(0) >> 2
  65.             enc(1) = ((chrs(0) And 3) << 4) Or (chrs(1) >> 4)
  66.             enc(2) = ((chrs(1) And 15) << 2) Or (chrs(2) >> 6)
  67.             enc(3) = chrs(2) And 63
  68.             If chrs(1) = 0 Then
  69.                 enc(2) = 64
  70.                 enc(3) = 64
  71.             End If
  72.             If chrs(2) = 0 Then
  73.                 enc(3) = 64
  74.             End If
  75.             For Each x As Integer In enc
  76.                 out.Append(key(x))
  77.             Next
  78.         Loop While i < input.Length
  79.         Return out.ToString
  80.     End Function
  81.     Public Function HAZZ15_Decode(ByVal input As String) As String
  82.         Dim key As String = "HNO4klm6ij9n+J2hyf0gzA8uvwDEq3X1Q7ZKeFrWcVTts/MRGYbdxSo=ILaUpPBC5"
  83.         Dim out As New System.Text.StringBuilder
  84.         Dim i As Integer
  85.         Do
  86.             Dim enc(3) As Integer
  87.             Dim chrs() As Integer = {0, 0, 0}
  88.             For b As Integer = 0 To 3
  89.                 enc(b) = key.IndexOf(input(i))
  90.                 i = i + 1
  91.             Next
  92.             chrs(0) = (enc(0) << 2) Or (enc(1) >> 4)
  93.             chrs(1) = (enc(1) And 15) << 4 Or (enc(2) >> 2)
  94.             chrs(2) = (enc(2) And 3) << 6 Or enc(3)
  95.             out.Append(Chr(chrs(0)))
  96.             If enc(2) <> 64 Then out.Append(Chr(chrs(1)))
  97.             If enc(3) <> 64 Then out.Append(Chr(chrs(2)))
  98.         Loop While i < input.Length
  99.         Return out.ToString
  100.     End Function
  101.     Public Function GILA7_Encode(ByVal input As String) As String
  102.         input = Uri.EscapeDataString(input)
  103.         Dim key As String = "7ZSTJK+W=cVtBCasyf0gzA8uvwDEq3XH/1RMNOILPQU4klm65YbdeFrx2hij9nopG"
  104.         Dim out As New System.Text.StringBuilder
  105.         Dim i As Integer
  106.         Do
  107.             Dim enc(3) As Integer
  108.             Dim chrs As Integer() = {0, 0, 0}
  109.             For b As Integer = 0 To 2
  110.                 If i < input.Length Then chrs(b) = Asc(input(i))
  111.                 i += 1
  112.             Next
  113.             enc(0) = chrs(0) >> 2
  114.             enc(1) = ((chrs(0) And 3) << 4) Or (chrs(1) >> 4)
  115.             enc(2) = ((chrs(1) And 15) << 2) Or (chrs(2) >> 6)
  116.             enc(3) = chrs(2) And 63
  117.             If chrs(1) = 0 Then
  118.                 enc(2) = 64
  119.                 enc(3) = 64
  120.             End If
  121.             If chrs(2) = 0 Then
  122.                 enc(3) = 64
  123.             End If
  124.             For Each x As Integer In enc
  125.                 out.Append(key(x))
  126.             Next
  127.         Loop While i < input.Length
  128.         Return out.ToString
  129.     End Function
  130.     Public Function GILA7_Decode(ByVal input As String) As String
  131.         Dim key As String = "7ZSTJK+W=cVtBCasyf0gzA8uvwDEq3XH/1RMNOILPQU4klm65YbdeFrx2hij9nopG"
  132.         Dim out As New System.Text.StringBuilder
  133.         Dim i As Integer
  134.         Do
  135.             Dim enc(3) As Integer
  136.             Dim chrs() As Integer = {0, 0, 0}
  137.             For b As Integer = 0 To 3
  138.                 enc(b) = key.IndexOf(input(i))
  139.                 i = i + 1
  140.             Next
  141.             chrs(0) = (enc(0) << 2) Or (enc(1) >> 4)
  142.             chrs(1) = (enc(1) And 15) << 4 Or (enc(2) >> 2)
  143.             chrs(2) = (enc(2) And 3) << 6 Or enc(3)
  144.             out.Append(Chr(chrs(0)))
  145.             If enc(2) <> 64 Then out.Append(Chr(chrs(1)))
  146.             If enc(3) <> 64 Then out.Append(Chr(chrs(2)))
  147.         Loop While i < input.Length
  148.         Return out.ToString
  149.     End Function
  150.     Public Function ESAB46_Encode(ByVal input As String) As String
  151.         input = Uri.EscapeDataString(input)
  152.         Dim key As String = "ABCDqrs456tuvNOPwxyz012KLM3789=+QRSTUVWXYZabcdefghijklmnopEFGHIJ/"
  153.         Dim out As New System.Text.StringBuilder
  154.         Dim i As Integer
  155.         Do
  156.             Dim enc(3) As Integer
  157.             Dim chrs As Integer() = {0, 0, 0}
  158.             For b As Integer = 0 To 2
  159.                 If i < input.Length Then chrs(b) = Asc(input(i))
  160.                 i += 1
  161.             Next
  162.             enc(0) = chrs(0) >> 2
  163.             enc(1) = ((chrs(0) And 3) << 4) Or (chrs(1) >> 4)
  164.             enc(2) = ((chrs(1) And 15) << 2) Or (chrs(2) >> 6)
  165.             enc(3) = chrs(2) And 63
  166.             If chrs(1) = 0 Then
  167.                 enc(2) = 64
  168.                 enc(3) = 64
  169.             End If
  170.             If chrs(2) = 0 Then
  171.                 enc(3) = 64
  172.             End If
  173.             For Each x As Integer In enc
  174.                 out.Append(key(x))
  175.             Next
  176.         Loop While i < input.Length
  177.         Return out.ToString
  178.     End Function
  179.     Public Function ESAB46_Decode(ByVal input As String) As String
  180.         Dim key As String = "ABCDqrs456tuvNOPwxyz012KLM3789=+QRSTUVWXYZabcdefghijklmnopEFGHIJ/"
  181.         Dim out As New System.Text.StringBuilder
  182.         Dim i As Integer
  183.         Do
  184.             Dim enc(3) As Integer
  185.             Dim chrs() As Integer = {0, 0, 0}
  186.             For b As Integer = 0 To 3
  187.                 enc(b) = key.IndexOf(input(i))
  188.                 i = i + 1
  189.             Next
  190.             chrs(0) = (enc(0) << 2) Or (enc(1) >> 4)
  191.             chrs(1) = (enc(1) And 15) << 4 Or (enc(2) >> 2)
  192.             chrs(2) = (enc(2) And 3) << 6 Or enc(3)
  193.             out.Append(Chr(chrs(0)))
  194.             If enc(2) <> 64 Then out.Append(Chr(chrs(1)))
  195.             If enc(3) <> 64 Then out.Append(Chr(chrs(2)))
  196.         Loop While i < input.Length
  197.         Return out.ToString
  198.     End Function
  199.     Public Function MEGAN35_Encode(ByVal input As String) As String
  200.         input = Uri.EscapeDataString(input)
  201.         Dim key As String = "3GHIJKLMNOPQRSTUb=cdefghijklmnopWXYZ/12+406789VaqrstuvwxyzABCDEF5"
  202.         Dim out As New System.Text.StringBuilder
  203.         Dim i As Integer
  204.         Do
  205.             Dim enc(3) As Integer
  206.             Dim chrs As Integer() = {0, 0, 0}
  207.             For b As Integer = 0 To 2
  208.                 If i < input.Length Then chrs(b) = Asc(input(i))
  209.                 i += 1
  210.             Next
  211.             enc(0) = chrs(0) >> 2
  212.             enc(1) = ((chrs(0) And 3) << 4) Or (chrs(1) >> 4)
  213.             enc(2) = ((chrs(1) And 15) << 2) Or (chrs(2) >> 6)
  214.             enc(3) = chrs(2) And 63
  215.             If chrs(1) = 0 Then
  216.                 enc(2) = 64
  217.                 enc(3) = 64
  218.             End If
  219.             If chrs(2) = 0 Then
  220.                 enc(3) = 64
  221.             End If
  222.             For Each x As Integer In enc
  223.                 out.Append(key(x))
  224.             Next
  225.         Loop While i < input.Length
  226.         Return out.ToString
  227.     End Function
  228.     Public Function MEGAN35_Decode(ByVal input As String) As String
  229.         Dim key As String = "3GHIJKLMNOPQRSTUb=cdefghijklmnopWXYZ/12+406789VaqrstuvwxyzABCDEF5"
  230.         Dim out As New System.Text.StringBuilder
  231.         Dim i As Integer
  232.         Do
  233.             Dim enc(3) As Integer
  234.             Dim chrs() As Integer = {0, 0, 0}
  235.             For b As Integer = 0 To 3
  236.                 enc(b) = key.IndexOf(input(i))
  237.                 i = i + 1
  238.             Next
  239.             chrs(0) = (enc(0) << 2) Or (enc(1) >> 4)
  240.             chrs(1) = (enc(1) And 15) << 4 Or (enc(2) >> 2)
  241.             chrs(2) = (enc(2) And 3) << 6 Or enc(3)
  242.             out.Append(Chr(chrs(0)))
  243.             If enc(2) <> 64 Then out.Append(Chr(chrs(1)))
  244.             If enc(3) <> 64 Then out.Append(Chr(chrs(2)))
  245.         Loop While i < input.Length
  246.         Return out.ToString
  247.     End Function
  248.     Public Function ZONG22_Encode(ByVal input As String) As String
  249.         input = Uri.EscapeDataString(input)
  250.         Dim key As String = "ZKj9n+yf0wDVX1s/5YbdxSo=ILaUpPBCHg8uvNO4klm6iJGhQ7eFrWczAMEq3RTt2"
  251.         Dim out As New System.Text.StringBuilder
  252.         Dim i As Integer
  253.         Do
  254.             Dim enc(3) As Integer
  255.             Dim chrs As Integer() = {0, 0, 0}
  256.             For b As Integer = 0 To 2
  257.                 If i < input.Length Then chrs(b) = Asc(input(i))
  258.                 i += 1
  259.             Next
  260.             enc(0) = chrs(0) >> 2
  261.             enc(1) = ((chrs(0) And 3) << 4) Or (chrs(1) >> 4)
  262.             enc(2) = ((chrs(1) And 15) << 2) Or (chrs(2) >> 6)
  263.             enc(3) = chrs(2) And 63
  264.             If chrs(1) = 0 Then
  265.                 enc(2) = 64
  266.                 enc(3) = 64
  267.             End If
  268.             If chrs(2) = 0 Then
  269.                 enc(3) = 64
  270.             End If
  271.             For Each x As Integer In enc
  272.                 out.Append(key(x))
  273.             Next
  274.         Loop While i < input.Length
  275.         Return out.ToString
  276.     End Function
  277.     Public Function ZONG22_Decode(ByVal input As String) As String
  278.         Dim key As String = "ZKj9n+yf0wDVX1s/5YbdxSo=ILaUpPBCHg8uvNO4klm6iJGhQ7eFrWczAMEq3RTt2"
  279.         Dim out As New System.Text.StringBuilder
  280.         Dim i As Integer
  281.         Do
  282.             Dim enc(3) As Integer
  283.             Dim chrs() As Integer = {0, 0, 0}
  284.             For b As Integer = 0 To 3
  285.                 enc(b) = key.IndexOf(input(i))
  286.                 i = i + 1
  287.             Next
  288.             chrs(0) = (enc(0) << 2) Or (enc(1) >> 4)
  289.             chrs(1) = (enc(1) And 15) << 4 Or (enc(2) >> 2)
  290.             chrs(2) = (enc(2) And 3) << 6 Or enc(3)
  291.             out.Append(Chr(chrs(0)))
  292.             If enc(2) <> 64 Then out.Append(Chr(chrs(1)))
  293.             If enc(3) <> 64 Then out.Append(Chr(chrs(2)))
  294.         Loop While i < input.Length
  295.         Return out.ToString
  296.     End Function
  297.     Public Function TRIPO5_Encode(ByVal input As String) As String
  298.         input = Uri.EscapeDataString(input)
  299.         Dim key As String = "ghijopE+G78lmnIJQRXY=abcS/UVWdefABCs456tDqruvNOPwx2KLyz01M3Hk9ZFT"
  300.         Dim out As New System.Text.StringBuilder
  301.         Dim i As Integer
  302.         Do
  303.             Dim enc(3) As Integer
  304.             Dim chrs As Integer() = {0, 0, 0}
  305.             For b As Integer = 0 To 2
  306.                 If i < input.Length Then chrs(b) = Asc(input(i))
  307.                 i += 1
  308.             Next
  309.             enc(0) = chrs(0) >> 2
  310.             enc(1) = ((chrs(0) And 3) << 4) Or (chrs(1) >> 4)
  311.             enc(2) = ((chrs(1) And 15) << 2) Or (chrs(2) >> 6)
  312.             enc(3) = chrs(2) And 63
  313.             If chrs(1) = 0 Then
  314.                 enc(2) = 64
  315.                 enc(3) = 64
  316.             End If
  317.             If chrs(2) = 0 Then
  318.                 enc(3) = 64
  319.             End If
  320.             For Each x As Integer In enc
  321.                 out.Append(key(x))
  322.             Next
  323.         Loop While i < input.Length
  324.         Return out.ToString
  325.     End Function
  326.     Public Function TRIPO5_Decode(ByVal input As String) As String
  327.         Dim key As String = "ghijopE+G78lmnIJQRXY=abcS/UVWdefABCs456tDqruvNOPwx2KLyz01M3Hk9ZFT"
  328.         Dim out As New System.Text.StringBuilder
  329.         Dim i As Integer
  330.         Do
  331.             Dim enc(3) As Integer
  332.             Dim chrs() As Integer = {0, 0, 0}
  333.             For b As Integer = 0 To 3
  334.                 enc(b) = key.IndexOf(input(i))
  335.                 i = i + 1
  336.             Next
  337.             chrs(0) = (enc(0) << 2) Or (enc(1) >> 4)
  338.             chrs(1) = (enc(1) And 15) << 4 Or (enc(2) >> 2)
  339.             chrs(2) = (enc(2) And 3) << 6 Or enc(3)
  340.             out.Append(Chr(chrs(0)))
  341.             If enc(2) <> 64 Then out.Append(Chr(chrs(1)))
  342.             If enc(3) <> 64 Then out.Append(Chr(chrs(2)))
  343.         Loop While i < input.Length
  344.         Return out.ToString
  345.     End Function
  346.  
  347.     Public Function TIGO3FX_Encode(ByVal input As String) As String
  348.         input = Uri.EscapeDataString(input)
  349.         Dim key As String = "FrsxyzA8VtuvwDEqWZ/1+4klm67=cBCa5Ybdef0g2hij9nopMNO3GHIRSTJKLPQUX"
  350.         Dim out As New System.Text.StringBuilder
  351.         Dim i As Integer
  352.         Do
  353.             Dim enc(3) As Integer
  354.             Dim chrs As Integer() = {0, 0, 0}
  355.             For b As Integer = 0 To 2
  356.                 If i < input.Length Then chrs(b) = Asc(input(i))
  357.                 i += 1
  358.             Next
  359.             enc(0) = chrs(0) >> 2
  360.             enc(1) = ((chrs(0) And 3) << 4) Or (chrs(1) >> 4)
  361.             enc(2) = ((chrs(1) And 15) << 2) Or (chrs(2) >> 6)
  362.             enc(3) = chrs(2) And 63
  363.             If chrs(1) = 0 Then
  364.                 enc(2) = 64
  365.                 enc(3) = 64
  366.             End If
  367.             If chrs(2) = 0 Then
  368.                 enc(3) = 64
  369.             End If
  370.             For Each x As Integer In enc
  371.                 out.Append(key(x))
  372.             Next
  373.         Loop While i < input.Length
  374.         Return out.ToString
  375.     End Function
  376.     Public Function TIGO3FX_Decode(ByVal input As String) As String
  377.         Dim key As String = "FrsxyzA8VtuvwDEqWZ/1+4klm67=cBCa5Ybdef0g2hij9nopMNO3GHIRSTJKLPQUX"
  378.         Dim out As New System.Text.StringBuilder
  379.         Dim i As Integer
  380.         Do
  381.             Dim enc(3) As Integer
  382.             Dim chrs() As Integer = {0, 0, 0}
  383.             For b As Integer = 0 To 3
  384.                 enc(b) = key.IndexOf(input(i))
  385.                 i = i + 1
  386.             Next
  387.             chrs(0) = (enc(0) << 2) Or (enc(1) >> 4)
  388.             chrs(1) = (enc(1) And 15) << 4 Or (enc(2) >> 2)
  389.             chrs(2) = (enc(2) And 3) << 6 Or enc(3)
  390.             out.Append(Chr(chrs(0)))
  391.             If enc(2) <> 64 Then out.Append(Chr(chrs(1)))
  392.             If enc(3) <> 64 Then out.Append(Chr(chrs(2)))
  393.         Loop While i < input.Length
  394.         Return out.ToString
  395.     End Function
  396.     Public Function FERON74_Encode(ByVal input As String) As String
  397.         input = Uri.EscapeDataString(input)
  398.         Dim key As String = "75XYTabcS/UVWdefADqr6RuvN8PBCsQtwx2KLyz+OM3Hk9ghi01ZFlmnjopE=GIJ4"
  399.         Dim out As New System.Text.StringBuilder
  400.         Dim i As Integer
  401.         Do
  402.             Dim enc(3) As Integer
  403.             Dim chrs As Integer() = {0, 0, 0}
  404.             For b As Integer = 0 To 2
  405.                 If i < input.Length Then chrs(b) = Asc(input(i))
  406.                 i += 1
  407.             Next
  408.             enc(0) = chrs(0) >> 2
  409.             enc(1) = ((chrs(0) And 3) << 4) Or (chrs(1) >> 4)
  410.             enc(2) = ((chrs(1) And 15) << 2) Or (chrs(2) >> 6)
  411.             enc(3) = chrs(2) And 63
  412.             If chrs(1) = 0 Then
  413.                 enc(2) = 64
  414.                 enc(3) = 64
  415.             End If
  416.             If chrs(2) = 0 Then
  417.                 enc(3) = 64
  418.             End If
  419.             For Each x As Integer In enc
  420.                 out.Append(key(x))
  421.             Next
  422.         Loop While i < input.Length
  423.         Return out.ToString
  424.     End Function
  425.     Public Function FERON74_Decode(ByVal input As String) As String
  426.         Dim key As String = "75XYTabcS/UVWdefADqr6RuvN8PBCsQtwx2KLyz+OM3Hk9ghi01ZFlmnjopE=GIJ4"
  427.         Dim out As New System.Text.StringBuilder
  428.         Dim i As Integer
  429.         Do
  430.             Dim enc(3) As Integer
  431.             Dim chrs() As Integer = {0, 0, 0}
  432.             For b As Integer = 0 To 3
  433.                 enc(b) = key.IndexOf(input(i))
  434.                 i = i + 1
  435.             Next
  436.             chrs(0) = (enc(0) << 2) Or (enc(1) >> 4)
  437.             chrs(1) = (enc(1) And 15) << 4 Or (enc(2) >> 2)
  438.             chrs(2) = (enc(2) And 3) << 6 Or enc(3)
  439.             out.Append(Chr(chrs(0)))
  440.             If enc(2) <> 64 Then out.Append(Chr(chrs(1)))
  441.             If enc(3) <> 64 Then out.Append(Chr(chrs(2)))
  442.         Loop While i < input.Length
  443.         Return out.ToString
  444.     End Function
  445.     Public Function ZARA128_Encode(ByVal input As String) As String
  446.         Dim out As New System.Text.StringBuilder
  447.         For Each c As Char In input
  448.             Dim temp As Integer = Asc(c) + 312
  449.             out.Append(temp.ToString & " ")
  450.         Next
  451.         Return out.ToString.Substring(0, out.Length - 1)
  452.     End Function
  453.     Public Function ZARA128_Decode(ByVal input As String) As String
  454.         Dim out As New System.Text.StringBuilder
  455.         Dim data As String() = Split(input, " ")
  456.         For Each s As String In data
  457.             out.Append(Chr(Asc(s) - 312))
  458.         Next
  459.         Return out.ToString
  460.     End Function
  461.     Public Function BASE64_Encode(ByVal input As String) As String
  462.         Return Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes(input))
  463.     End Function
  464.     Public Function BASE64_Decode(ByVal input As String) As String
  465.         Return System.Text.Encoding.ASCII.GetString(Convert.FromBase64String(input))
  466.     End Function
  467.     Public Function ARMON64_Encrypt(ByVal message As String, Optional ByVal key As String = "ARMON64-CRYPO") As String
  468.         Dim out As New System.Text.StringBuilder
  469.         If key.Length < 3 Then Return message
  470.         Dim intkey() As Byte = System.Text.Encoding.UTF8.GetBytes(key)
  471.         Dim x As Integer
  472.         Do While x < message.Length
  473.             Dim hextemp As String = ""
  474.             Dim y As String = ""
  475.             If x > 0 Then y = "+"
  476.             For i As Integer = x To Math.Round(key.Length / 2)
  477.                 If i < message.Length Then hextemp += Hex(Asc(message(i)))
  478.             Next
  479.             Dim thenum As Double = "&H" & hextemp
  480.             If Information.IsNumeric(thenum) = False Then Return message
  481.             For z As Integer = 0 To key.Length - 1
  482.                 Dim operation As Integer = z Mod 4
  483.                 Select Case operation
  484.                     Case 0
  485.                         thenum += intkey(z)
  486.                     Case 1
  487.                         thenum /= intkey(z)
  488.                     Case 2
  489.                         thenum -= intkey(z)
  490.                     Case 3
  491.                         thenum *= 0.01 * intkey(z)
  492.                 End Select
  493.             Next
  494.             out.Append(y & thenum)
  495.             x += Math.Round(key.Length / 2)
  496.         Loop
  497.         Return out.ToString.Replace(",", ".")
  498.     End Function
  499.     Public Function ARMON64_Decrypt(ByVal message As String, Optional ByVal key As String = "ARMON64-CRYPO") As String
  500.         Dim out As New System.Text.StringBuilder
  501.         If key.Length < 6 Then Return message
  502.         Dim intkey() As Byte = System.Text.Encoding.UTF8.GetBytes(key)
  503.         message = message.Replace(".", ",")
  504.         Dim oOutString As String() = Split(message, "+")
  505.         For x As Integer = 0 To oOutString.Length - 1
  506.             For z As Integer = key.Length - 1 To 0 Step -1
  507.                 Dim operation As Integer = z Mod 4
  508.                 Select Case operation
  509.                     Case 0
  510.                         oOutString(x) -= intkey(z)
  511.                     Case 1
  512.                         oOutString(x) *= intkey(z)
  513.                     Case 2
  514.                         oOutString(x) += intkey(z)
  515.                     Case 3
  516.                         oOutString(x) /= 0.01 * intkey(z)
  517.                 End Select
  518.             Next
  519.             oOutString(x) = Hex(Math.Round(Double.Parse(oOutString(x))))
  520.         Next
  521.         For i As Integer = 0 To Join(oOutString).Length - 1 Step +2
  522.             out.Append(Chr(("&H" & Join(oOutString).Substring(i, 2))))
  523.         Next
  524.         Return out.ToString
  525.     End Function
  526.     Public Function AER256_Encrypt(ByVal message As String, Optional ByVal key As String = "A256-CRYPO") As String
  527.         Dim out As New System.Text.StringBuilder
  528.         If key.Length < 10 Then Return message
  529.         Dim intkey() As Byte = System.Text.Encoding.UTF8.GetBytes(key)
  530.         Dim x As Integer
  531.         Do While x < message.Length
  532.             Dim hextemp As String = ""
  533.             Dim y As String = ""
  534.             If x > 0 Then y = ", "
  535.             For i As Integer = x To Math.Round(key.Length / 2)
  536.                 If i < message.Length Then hextemp += Hex(Asc(message(i)))
  537.             Next
  538.             Dim thenum As Double = "&H" & hextemp
  539.             If Information.IsNumeric(thenum) = False Then Return message
  540.             For z As Integer = 0 To key.Length - 1
  541.                 Dim operation As Integer = z Mod 3
  542.                 Select Case operation
  543.                     Case 0
  544.                         thenum += intkey(z)
  545.                     Case 1
  546.                         thenum /= intkey(z)
  547.                     Case 2
  548.                         thenum -= intkey(z)
  549.                     Case 3
  550.                         thenum *= 0.02 * intkey(z)
  551.                 End Select
  552.             Next
  553.             Dim temp As String = thenum.ToString.Replace(",", ".")
  554.             out.Append(y & temp)
  555.             x += Math.Round(key.Length / 2)
  556.         Loop
  557.         Return out.ToString
  558.     End Function
  559.     Public Function AER256_Decrypt(ByVal message As String, Optional ByVal key As String = "A256-CRYPO") As String
  560.         Dim out As New System.Text.StringBuilder
  561.         If key.Length < 10 Then Return message
  562.         Dim intkey() As Byte = System.Text.Encoding.UTF8.GetBytes(key)
  563.  
  564.         Dim oOutString As String() = Split(message, ", ")
  565.         For i As Integer = 0 To oOutString.Length - 1
  566.             oOutString(i) = oOutString(i).Replace(".", ",")
  567.         Next
  568.         For x As Integer = 0 To oOutString.Length - 1
  569.             For z As Integer = key.Length - 1 To 0 Step -1
  570.                 Dim operation As Integer = z Mod 3
  571.                 Select Case operation
  572.                     Case 0
  573.                         oOutString(x) -= intkey(z)
  574.                     Case 1
  575.                         oOutString(x) *= intkey(z)
  576.                     Case 2
  577.                         oOutString(x) += intkey(z)
  578.                     Case 3
  579.                         oOutString(x) /= 0.02 * intkey(z)
  580.                 End Select
  581.             Next
  582.             oOutString(x) = Hex(Math.Round(Double.Parse(oOutString(x))))
  583.         Next
  584.         For i As Integer = 0 To Join(oOutString).Length - 1 Step +2
  585.             out.Append(Chr(("&H" & Join(oOutString).Substring(i, 2))))
  586.         Next
  587.         Return out.ToString
  588.     End Function
  589.     Public Function EZIP64_Encrypt(ByVal message As String, Optional ByVal key As String = "EZIP64-CRYPO") As String
  590.         Dim out As New System.Text.StringBuilder
  591.         If key.Length < 10 Then Return message
  592.         Dim intkey() As Byte = System.Text.Encoding.UTF8.GetBytes(key)
  593.         Dim x As Integer
  594.         Do While x < message.Length
  595.             Dim hextemp As String = ""
  596.             Dim y As String = ""
  597.             If x > 0 Then y = "/"
  598.             For i As Integer = x To Math.Round(key.Length / 3)
  599.                 If i < message.Length Then hextemp += Hex(Asc(message(i)))
  600.             Next
  601.             Dim thenum As Double = "&H" & hextemp
  602.             If Information.IsNumeric(thenum) = False Then Return message
  603.             For z As Integer = 0 To key.Length - 1
  604.                 Dim operation As Integer = z Mod 4
  605.                 Select Case operation
  606.                     Case 0
  607.                         thenum += intkey(z)
  608.                     Case 1
  609.                         thenum /= intkey(z)
  610.                     Case 2
  611.                         thenum -= intkey(z)
  612.                     Case 3
  613.                         thenum *= 0.02 * intkey(z)
  614.                 End Select
  615.             Next
  616.             Dim temp As String = thenum.ToString.Replace(",", ".")
  617.             out.Append(y & temp)
  618.             x += Math.Round(key.Length / 3)
  619.         Loop
  620.         Return out.ToString
  621.     End Function
  622.     Public Function EZIP64_Decrypt(ByVal message As String, Optional ByVal key As String = "EZIP64-CRYPO") As String
  623.         Dim out As New System.Text.StringBuilder
  624.         If key.Length < 10 Then Return message
  625.         Dim intkey() As Byte = System.Text.Encoding.UTF8.GetBytes(key)
  626.  
  627.         Dim oOutString As String() = Split(message, "/")
  628.         For i As Integer = 0 To oOutString.Length - 1
  629.             oOutString(i) = oOutString(i).Replace(".", ",")
  630.         Next
  631.         For x As Integer = 0 To oOutString.Length - 1
  632.             For z As Integer = key.Length - 1 To 0 Step -1
  633.                 Dim operation As Integer = z Mod 4
  634.                 Select Case operation
  635.                     Case 0
  636.                         oOutString(x) -= intkey(z)
  637.                     Case 1
  638.                         oOutString(x) *= intkey(z)
  639.                     Case 2
  640.                         oOutString(x) += intkey(z)
  641.                     Case 3
  642.                         oOutString(x) /= 0.02 * intkey(z)
  643.                 End Select
  644.             Next
  645.             oOutString(x) = Hex(Math.Round(Double.Parse(oOutString(x))))
  646.         Next
  647.         For i As Integer = 0 To Join(oOutString).Length - 1 Step +2
  648.             out.Append(Chr(("&H" & Join(oOutString).Substring(i, 2))))
  649.             Dim j As String = out.ToString
  650.         Next
  651.         Return out.ToString
  652.     End Function
  653.     Public Function OKTO3_Encrypt(ByVal message As String, Optional ByVal key As String = "PASS:OKTO3-CRYPO") As String
  654.         Dim out As New System.Text.StringBuilder
  655.         If key.Length < 10 Then Return message
  656.         Dim intkey() As Byte = System.Text.Encoding.UTF8.GetBytes(key)
  657.         Dim x As Integer
  658.         Do While x < message.Length
  659.             Dim hextemp As String = ""
  660.             Dim y As String = ""
  661.             If x > 0 Then y = ", "
  662.             For i As Integer = x To Math.Round(key.Length / 6)
  663.                 If i < message.Length Then hextemp += Hex(Asc(message(i)))
  664.             Next
  665.             Dim thenum As Double = "&H" & hextemp
  666.             If Information.IsNumeric(thenum) = False Then Return message
  667.             For z As Integer = 0 To key.Length - 1
  668.                 Dim operation As Integer = z Mod 3
  669.                 Select Case operation
  670.                     Case 0
  671.                         thenum += intkey(z)
  672.                     Case 1
  673.                         thenum /= intkey(z)
  674.                     Case 2
  675.                         thenum -= intkey(z)
  676.                     Case 3
  677.                         thenum *= 500.005 * intkey(z)
  678.                 End Select
  679.             Next
  680.             Dim temp As String = thenum.ToString.Replace(",", ".")
  681.             out.Append(y & temp)
  682.             x += Math.Round(key.Length / 6)
  683.         Loop
  684.         Return out.ToString
  685.     End Function
  686.     Public Function OKTO3_Decrypt(ByVal message As String, Optional ByVal key As String = "PASS:OKTO3-CRYPO") As String
  687.         Dim out As New System.Text.StringBuilder
  688.         If key.Length < 10 Then Return message
  689.         Dim intkey() As Byte = System.Text.Encoding.UTF8.GetBytes(key)
  690.  
  691.         Dim oOutString As String() = Split(message, ", ")
  692.         For i As Integer = 0 To oOutString.Length - 1
  693.             oOutString(i) = oOutString(i).Replace(".", ",")
  694.         Next
  695.         For x As Integer = 0 To oOutString.Length - 1
  696.             For z As Integer = key.Length - 1 To 0 Step -1
  697.                 Dim operation As Integer = z Mod 3
  698.                 Select Case operation
  699.                     Case 0
  700.                         oOutString(x) -= intkey(z)
  701.                     Case 1
  702.                         oOutString(x) *= intkey(z)
  703.                     Case 2
  704.                         oOutString(x) += intkey(z)
  705.                     Case 3
  706.                         oOutString(x) /= 0.02 * intkey(z)
  707.                 End Select
  708.             Next
  709.             oOutString(x) = Hex(Math.Round(Double.Parse(oOutString(x))))
  710.         Next
  711.         For i As Integer = 0 To Join(oOutString).Length - 1 Step +2
  712.             out.Append(Chr(("&H" & Join(oOutString).Substring(i, 2))))
  713.         Next
  714.         Return out.ToString
  715.     End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement