Accueil > > > CRYPTER À LA MANIERE DE CESAR
CRYPTER À LA MANIERE DE CESAR
Information sur la source
Description
C'est un simple décalage de lettre text1 = msg normal text2 = msg crypté text3 = clef
Source
- Dim i As Integer
- Dim x, xx, xxx
- Form1.Text2 = ""
- For i = 1 To Len(Form1.Text1)
- x = Mid$(Form1.Text1, i, 1)
- If x = "a" Or x = "A" Then xx = 1 + Text3
- If x = "b" Or x = "B" Then xx = 2 + Text3
- If x = "c" Or x = "C" Then xx = 3 + Text3
- If x = "d" Or x = "D" Then xx = 4 + Text3
- If x = "e" Or x = "E" Then xx = 5 + Text3
- If x = "f" Or x = "F" Then xx = 6 + Text3
- If x = "g" Or x = "G" Then xx = 7 + Text3
- If x = "h" Or x = "H" Then xx = 8 + Text3
- If x = "i" Or x = "I" Then xx = 9 + Text3
- If x = "j" Or x = "J" Then xx = 10 + Text3
- If x = "k" Or x = "K" Then xx = 11 + Text3
- If x = "l" Or x = "L" Then xx = 12 + Text3
- If x = "m" Or x = "M" Then xx = 13 + Text3
- If x = "n" Or x = "N" Then xx = 14 + Text3
- If x = "o" Or x = "O" Then xx = 15 + Text3
- If x = "p" Or x = "P" Then xx = 16 + Text3
- If x = "q" Or x = "Q" Then xx = 17 + Text3
- If x = "r" Or x = "R" Then xx = 18 + Text3
- If x = "s" Or x = "S" Then xx = 19 + Text3
- If x = "t" Or x = "T" Then xx = 20 + Text3
- If x = "u" Or x = "U" Then xx = 21 + Text3
- If x = "v" Or x = "V" Then xx = 22 + Text3
- If x = "w" Or x = "W" Then xx = 23 + Text3
- If x = "x" Or x = "X" Then xx = 24 + Text3
- If x = "y" Or x = "Y" Then xx = 25 + Text3
- If x = "z" Or x = "Z" Then xx = 26 + Text3
-
- Do While xx > 26
- xx = xx - 26
- Loop
-
- If xx = 1 Then xxx = "a"
- If xx = 2 Then xxx = "b"
- If xx = 3 Then xxx = "c"
- If xx = 4 Then xxx = "d"
- If xx = 5 Then xxx = "e"
- If xx = 6 Then xxx = "f"
- If xx = 7 Then xxx = "g"
- If xx = 8 Then xxx = "h"
- If xx = 9 Then xxx = "i"
- If xx = 10 Then xxx = "j"
- If xx = 11 Then xxx = "k"
- If xx = 12 Then xxx = "l"
- If xx = 13 Then xxx = "m"
- If xx = 14 Then xxx = "n"
- If xx = 15 Then xxx = "o"
- If xx = 16 Then xxx = "p"
- If xx = 17 Then xxx = "q"
- If xx = 18 Then xxx = "r"
- If xx = 19 Then xxx = "s"
- If xx = 20 Then xxx = "t"
- If xx = 21 Then xxx = "u"
- If xx = 22 Then xxx = "v"
- If xx = 23 Then xxx = "w"
- If xx = 24 Then xxx = "x"
- If xx = 25 Then xxx = "y"
- If xx = 26 Then xxx = "z"
- Form1.Text2 = Form1.Text2 & xxx
- Next i
-
- ' (c) Majen da l33t c0d4h ! huhu
Dim i As Integer
Dim x, xx, xxx
Form1.Text2 = ""
For i = 1 To Len(Form1.Text1)
x = Mid$(Form1.Text1, i, 1)
If x = "a" Or x = "A" Then xx = 1 + Text3
If x = "b" Or x = "B" Then xx = 2 + Text3
If x = "c" Or x = "C" Then xx = 3 + Text3
If x = "d" Or x = "D" Then xx = 4 + Text3
If x = "e" Or x = "E" Then xx = 5 + Text3
If x = "f" Or x = "F" Then xx = 6 + Text3
If x = "g" Or x = "G" Then xx = 7 + Text3
If x = "h" Or x = "H" Then xx = 8 + Text3
If x = "i" Or x = "I" Then xx = 9 + Text3
If x = "j" Or x = "J" Then xx = 10 + Text3
If x = "k" Or x = "K" Then xx = 11 + Text3
If x = "l" Or x = "L" Then xx = 12 + Text3
If x = "m" Or x = "M" Then xx = 13 + Text3
If x = "n" Or x = "N" Then xx = 14 + Text3
If x = "o" Or x = "O" Then xx = 15 + Text3
If x = "p" Or x = "P" Then xx = 16 + Text3
If x = "q" Or x = "Q" Then xx = 17 + Text3
If x = "r" Or x = "R" Then xx = 18 + Text3
If x = "s" Or x = "S" Then xx = 19 + Text3
If x = "t" Or x = "T" Then xx = 20 + Text3
If x = "u" Or x = "U" Then xx = 21 + Text3
If x = "v" Or x = "V" Then xx = 22 + Text3
If x = "w" Or x = "W" Then xx = 23 + Text3
If x = "x" Or x = "X" Then xx = 24 + Text3
If x = "y" Or x = "Y" Then xx = 25 + Text3
If x = "z" Or x = "Z" Then xx = 26 + Text3
Do While xx > 26
xx = xx - 26
Loop
If xx = 1 Then xxx = "a"
If xx = 2 Then xxx = "b"
If xx = 3 Then xxx = "c"
If xx = 4 Then xxx = "d"
If xx = 5 Then xxx = "e"
If xx = 6 Then xxx = "f"
If xx = 7 Then xxx = "g"
If xx = 8 Then xxx = "h"
If xx = 9 Then xxx = "i"
If xx = 10 Then xxx = "j"
If xx = 11 Then xxx = "k"
If xx = 12 Then xxx = "l"
If xx = 13 Then xxx = "m"
If xx = 14 Then xxx = "n"
If xx = 15 Then xxx = "o"
If xx = 16 Then xxx = "p"
If xx = 17 Then xxx = "q"
If xx = 18 Then xxx = "r"
If xx = 19 Then xxx = "s"
If xx = 20 Then xxx = "t"
If xx = 21 Then xxx = "u"
If xx = 22 Then xxx = "v"
If xx = 23 Then xxx = "w"
If xx = 24 Then xxx = "x"
If xx = 25 Then xxx = "y"
If xx = 26 Then xxx = "z"
Form1.Text2 = Form1.Text2 & xxx
Next i
' (c) Majen da l33t c0d4h ! huhu
Conclusion
PS : ça ne garanti aucune sécurité
Sources du même auteur
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Crypter une base de données [ par rachid ]
je suis entrain de développer une application (avec VB6) qui utilisera des bases de données Access.Comment faire pour qu'on puisse utiliser ces bases
FSO Aide!... Crypter [ par AgentSmith ]
Salut à tous,Je vous solicite pour la raison d'un peti programme que je develope.Ce programme sert à crypter tous les codes ASPde toutes les pages d'u
Crypter dans la base de registre [ par BURN ]
Comment on fait pour crypter de quoi dans la base de régistre ??????????????????????C'est très IMPORTANT !Merci
question pour crypter ce que j'enregistre [ par cedstyle70 ]
voila bonjour tout le monde je commence dans la programmation et me suis amuser a créer ca avec un copain, c'est un programme qui me sert de "base de
aide cryptage [ par rems02 ]
je voudrais crypter un dossiermais je ne sais pas comment l'ouvriren binaire pour pouvoir le crypter.merci de votre aiderems
obtenir le mdp d'un .exe crypter avec.... [ par cav ]
bonjour,voila je voudrai savoir comment retrouver le mot de passe d'un fichier exe crypter avec le logiciel "invibles secrets 4" j'ai fait une boulete
comment loader une image crypter [ par geri ]
Bonjour,j'ai certaines questions concernant le cryptage et loader des images avec vb.net.je fait une application qui doit faire afficher mes dessins t
md5 ??? [ par Nerdz ]
Salut,Jai des mots de passe et logins dans une base mysql crypter en md5...et j'aimerais faire la vérification des users..Donc il entre son login et p
Très urgent: Cryptage [ par YannGotti ]
Je shouaiterais savoir s'il y à une possibilité de crypter un fichier avec une simple cléf stringFichier: |C:\Essais.txt|Code: |*****||Crypter| |Decry
Crypter [ par KKVDC ]
Quels'un aurrais une source pour Crypter un Fichiers vbs via un prog créé en vb6 ?Merci de me repondre.
|
Derniers Blogs
GESTION D'EXCEPTION AVEC LES TASKSGESTION D'EXCEPTION AVEC LES TASKS par richardc
Nous avons vu dans un précédent article comment utiliser Task pour effectuer des opérations dans un autre thread.
Malheureusement, comme tout le monde n'est pas parfait, il se peut que cette exécution se passe mal et qu'une exception se produise.
La...
Cliquez pour lire la suite de l'article par richardc DéMARRONS AVEC LES TASKSDéMARRONS AVEC LES TASKS par richardc
Que vous le vouliez ou non, le développement multi-tâche est maintenant une obligation pour toute nouvelle application. Il est donc vital d'en comprendre les mécanismes et de s'y mettre le plus tôt possible.
En attendant le .NET Framework 4.5 avec le...
Cliquez pour lire la suite de l'article par richardc SLIDE & DéMO TECHDAYS 2012 - FAST & FURIOUS XAML APPSSLIDE & DéMO TECHDAYS 2012 - FAST & FURIOUS XAML APPS par Vko
Retrouvez les slides et les démo de ma session Fast & Furious XAML Apps. A ceux qui se posent la question : "est-ce que le code de la DataGrid est disponible?", je vous répondrais "pas encore". Je vais mettre en place un projet codeplex pour part...
Cliquez pour lire la suite de l'article par Vko XNA IS DEAD!XNA IS DEAD! par richardc
Depuis la semaine dernière (et grâce aux TechDays 2012), je me penche activement sur la nouvelle version de Windows, aka Windows 8. Vous me direz, il était temps puisque la première preview date de Septembre dernier.
OK. Remarquez, on n'en est qu'aux...
Cliquez pour lire la suite de l'article par richardc TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 !TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 ! par ROMELARD Fabrice
Speakers: Fabrice Meillon et Stanislas Quastana Cette session est basée entièrement sur celle donnée lors de la BUILD cet hiver. Il n'y a pas d'ajout d'information en rapport avec cet évènement passé. Windows 8 Server sera intégralem...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|