Theyamahaesa Moderator
Jumlah posting : 51 Join date : 05.04.11
| Subyek: Cara Membuat Program Encrytion/Decryption Sat 9 Apr 2011 - 4:41 | |
| yg di butuh kan [You must be registered and logged in to see this image.] - Code:
-
Sub Rot13() For I = 1 To Len(txtTeks) Baca = Asc(Mid(txtTeks, I, 1)) 'Secara matematis C = ROT13(M) Tukar = Chr(Baca + 13) txtHasil = txtHasil & Tukar Next End Sub Sub DeRot13() For I = 1 To Len(txtTeks) Baca = Asc(Mid(txtTeks, I, 1)) 'Ekuivalen dengan M = ROT13(ROT13(M)) Tukar = Chr(Baca - 13) txtHasil = txtHasil & Tukar Next End Sub Private Sub cmdDekrip_Click() txtHasil = "" DeRot13 End Sub Private Sub cmdEnkrip_Click() txtHasil = "" Rot13 End Sub | |
|