Option Explicit
Sub Essai()
Dim n&: n = Cells(Rows.Count, 1).End(3).Row: If n = 1 Then Exit Sub
Dim Tbl, chn$, lng As Byte, c As Byte, p As Byte, i&
Tbl = [A1].Resize(n, 2): Tbl(1, 2) = "string 2"
For i = 2 To n
chn = Tbl(i, 1): lng = Len(chn): c = 0
If lng = 10 Then
For p = 1 To 10
c = c Xor Asc(Mid$(chn, p, 1))
Next p
Tbl(i, 2) = chn & Right$("0" & Hex$(c), 2)
End If
Next i
Application.ScreenUpdating = 0: [A1].Resize(n, 2) = Tbl
End Sub