Dim a As String
Dim b As String
a = modEncDec.AesEncryptString("a", "PASS")
b = "tA=="
a = Replace(a, vbCrLf, "")
If a = b Then
MsgBox "The Value of a is " & a & vbCrLf _
& "The Length of a is " & Len(a) & vbCrLf _
& "The Value of b is " & b & vbCrLf _
& "The Length of b is " & Len(b) & vbCrLf, _
vbOKOnly, "Matched"
Else
MsgBox "The Value of a is " & a & vbCrLf & "The Length of a is " & Len(a) & vbCrLf _
& "The Value of b is " & b & vbCrLf _
& "The Length of b is " & Len(b) & vbCrLf, _
vbOKOnly, "Not Matched"
End If