Public Function encrypt(strInput As String) Dim n As Integer, i As Integer n = 13 For i = 1 To Len(strInput) Mid(strInput, i, 1) = Chr(Asc(Mid(strInput, i, 1)) + n) Next i encrypt = strInput End Function Public Function decrypt(strInput As String) Dim n As Integer, i As Integer n = 13 For i = 1 To Len(strInput) Mid(strInput, i, 1) = Chr(Asc(Mid(strInput, i, 1)) - n) Next i decrypt = strInput End Function
You need to create an account or log in to post comments to this site.