Sub TestDecrypt
Dim c As Cipher
Dim su As StringUtils
'B4J generated:
'S3 = "tf1tTojxcBq1lGjrEagmRUcgD3QqLWgfQUUKGTsQVGjIwd+CCjR7OWljey6eArSJ5ch2iJVZe8/u4zi/wQ+qx6nvB6JWix8q"
'S3 = "qLouEbyuNrmPbdYD0EtKDSSAO2HEZEs+glMKPJscxrGLXfArsIBF9NCzNF8fADaVr7fK6Hz+bmRXRRTEKP0XZUgiqAJcJ1Fd"
'S3 = "QyvnUINMXQ17SXHuVx6oAYE4TOmxVHc+vRkDROlwbBD/ycHJB21EwzEGRwy/cbW/K7755Nn63g7SZv4W0NKqDiqyIWJvTwjj"
'B4I generated:
'S3 = "AB6Fcx31/JK5FCu1uUnGjJxhyLkoC5C82sfL92k+nUMcxOfqf8n83rsLQ7LFWo4tT0P6LjujCvfrylaN22GYgqlUFfYHnCUy"
'S3 = "Bw+pdQoWFV4LrreX4B2eQA7LjbmrOS9dKGJ/e7jhUIRLBQSRBgmhgOCmgckLA6z2O3nbS/UAnWl5pVQqYq7Gad+m0Q1rn+om"
'S3 = "zgJ3/3UzB8ea6E7fLn68meNl0JSACPZGLQgyE0H5RC9/5ts+xgh7kA8au3C57bQtd1xMRtEXj3SBCTUFid6WgW+i8fzCwEMx"
Dim TestInput() As String = Array As String( _
"tf1tTojxcBq1lGjrEagmRUcgD3QqLWgfQUUKGTsQVGjIwd+CCjR7OWljey6eArSJ5ch2iJVZe8/u4zi/wQ+qx6nvB6JWix8q", _
"qLouEbyuNrmPbdYD0EtKDSSAO2HEZEs+glMKPJscxrGLXfArsIBF9NCzNF8fADaVr7fK6Hz+bmRXRRTEKP0XZUgiqAJcJ1Fd", _
"QyvnUINMXQ17SXHuVx6oAYE4TOmxVHc+vRkDROlwbBD/ycHJB21EwzEGRwy/cbW/K7755Nn63g7SZv4W0NKqDiqyIWJvTwjj", _
"AB6Fcx31/JK5FCu1uUnGjJxhyLkoC5C82sfL92k+nUMcxOfqf8n83rsLQ7LFWo4tT0P6LjujCvfrylaN22GYgqlUFfYHnCUy", _
"Bw+pdQoWFV4LrreX4B2eQA7LjbmrOS9dKGJ/e7jhUIRLBQSRBgmhgOCmgckLA6z2O3nbS/UAnWl5pVQqYq7Gad+m0Q1rn+om", _
"zgJ3/3UzB8ea6E7fLn68meNl0JSACPZGLQgyE0H5RC9/5ts+xgh7kA8au3C57bQtd1xMRtEXj3SBCTUFid6WgW+i8fzCwEMx" _
)
For I = 0 To TestInput.Length - 1
Dim S3 As String = TestInput(I)
Log("S3 " & S3.Length & " = [" & S3 & "]")
Dim XB2() As Byte = su.DecodeBase64(S3)
Log("XB2 " & XB2.Length)
Dim XB1() As Byte = c.Decrypt(XB2, "SecurePassword")
Log("XB1 " & XB1.Length)
Dim NumberString As String = XB1(0)
For J = 1 To XB1.Length - 1
NumberString = NumberString & " " & XB1(J)
Next
Log(NumberString)
Dim Xtext As String = BytesToString(XB1, 0, XB1.Length, "utf8")
Log("Xtext " & Xtext.Length & " = [" & Xtext & "]")
Next
End Sub