|
Trouver une ressource
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
Sujet : Stéganographie [ Algorithme / Compression & Cryptage ] (vautour32)
Informations & options pour cette discussion
|
lundi 29 octobre 2007 à 18:49:27 |
Stéganographie

vautour32
|
Bonjour, J'essaie (depuis un bon moment) de faire un programme de stéganographie (cacher du texte dans une image) qui coderait les caractères sur le bit le - significatif. Le problème, c'est que le texte décrypté contient des erreurs:
END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE
IMPORTANT-READ CAREFULLY: This Microsoft End-User License Agreement (''EULA'') is a legal agreement between you (either an individual or a single entity) and Microsoft Corporation for the Microsoft software product(s) accompanying this EULA, which include(s) computer software and may include "online" or electronic documentation, associated media, and printed materials (''SOFTWARE PRODUCT''). By installing, copying, or otherwise using the SOFTWARE PRODUCT or any UPDATES (as defined below), you agree to be bound by the terms of this EULA. If you do not agree to the terms of this EULA, do not install, copy, or otherwise use the SOFTWARE PRODUCT; you may, however, return it to your place of purchase for a full refund. In addition, by installing, copying, or otherwise using any updates or other components of the SOFTWARE PRODUCT that you receive separately as part of the SOFTWARE PRODUCT (''UPDATES''), you agree to be bound by any additional license terms that accompany such UPDATES. If you do not agree to the additional license terms that accompany such UPDATES, you may not install, copy, or otherwise use such UPDATES.
devient:
"END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE
IMPORTANT-READ CAREFULLY: This Moÿ2;osoft End-User License Agreement (''EULA'') is a legal agreement between you (either ÿ individual or a single entity) and Microsoft Corporation for the Microsoft software ÿ/duct(s) accompanying this EULA, which include(s) computer software and may include ""oÿ4;ine"" or electronic documentation, associated media, and printed materials (''SOFTWARERODUCT''). By installing, copying, or otherwise using the SOFTWARE PRODUCT or any UPDOÿ5;S (as defined below), you agree to be bound by the terms of this EULA. If you do not!ÿ3;ree to the terms of this EULA, do not install, copy, or otherwise use the SOFTWARE PRÿUCT; you may, however, return it to your place of purchase for a full refund. In addiwÿF;n, by installing, copying, or otherwise using any updates or other components of the ÿ1;FTWARE PRODUCT that you receive separately as part of the SOFTWARE PRODUCT (''UPDATES?ÿ), you agree to be bound by any additional license terms that accompany such UPDATES.#ÿ6; you do not agree to the additional license terms that accompany such UPDATES, you manot install, copy, or otherwise use such UPDATES. Est-ce que quelqu'un sait ce qui peut donner ce genre d'erreur  Merci d'avance Vautour32
|
|
|
|
lundi 29 octobre 2007 à 19:54:47 |
Re : Stéganographie

jmfmarques
|
Bonsoir,
ton algo, sûrement...
Comment traites-tu le bit supérieur en cas de dépassement (hors des limites) ?
Tu retrouves au déchiffrement une valeur limitée aux bornes de l'intervalle permis, presque assurément !
|
|
|
|
lundi 29 octobre 2007 à 20:00:04 |
Re : Stéganographie

jack
|
Réponse acceptée !
Salut Oui, je sais ce qui donne ce genre de résultat : ton programme. Il doit y avoir une anomalie. Vérifie bien : - les longueurs des données que tu lis, - que toutes les données lues sont bien traitées, - - qu'une fin de donnée non traitée soit bien ajouter en tête du paquet suivant
Ce qui me fait penser à ça, et qui ne t'aura pas échappé, c'est que les anomalies de texte apparaissent pratiquement toujours au même endroit, tous les 86 à 90 caractères.
Vala Jack, MVP VB NB : Je ne répondrai pas aux messages privés
Le savoir est la seule matière qui s'accroit quand on la partage (Socrate)
|
|
|
|
lundi 29 octobre 2007 à 21:15:43 |
Re : Stéganographie

Kristof_Koder
|
ET puis les caractères parasites sont du coté obscur de l'UNICODE !! Sans doute un bit qui déborde et fait basculer un code ASCII sur une plage UNICODE
|
|
|
|
jeudi 1 novembre 2007 à 12:14:53 |
Re : Stéganographie

vautour32
|
Bonjour et merci d'avoir répondu si vite,
"ET puis les caractères parasites sont du coté obscur de l'UNICODE !! Sans doute un bit qui déborde et fait basculer un code ASCII sur une plage UNICODE" Ca, c'est pas possible: les code de caractères sont codés dans un nombre binaire de 8 bits, ça ne pourra donc jamais dépasser 255. Voici mon code:
Private Sub Code_image(X As Long) CX = X
For CY = 0 To Picture1.Height Step Screen.TwipsPerPixelY
Color = Picture1.Point(CX, CY) DecomposeRGB (Color) 'Decompose un code couleur en ses 3 compsantes RGB, dont il assigne les valeurs aux variable publique lRed, LGreen et LBlue If ctrInByte < 7 Then ctrInByte = ctrInByte + 1 Else ctrInByte = 0 ctrOutByte = ctrOutByte + 1 End If If ctrOutByte < UBound(tPassword) Then lRed = CByte(bitsTOdec(Mid$(DecToBits(CLng(lRed)), 9, 7) & Mid$(tPassword(ctrOutByte), ctrInByte + 1, 1))) If ctrInByte < 7 Then ctrInByte = ctrInByte + 1 Else ctrInByte = 0 ctrOutByte = ctrOutByte + 1 End If If ctrOutByte < UBound(tPassword) Then lGreen = CByte(bitsTOdec(Mid$(DecToBits(CLng(lGreen)), 9, 7) & Mid$(tPassword(ctrOutByte), ctrInByte + 1, 1))) If ctrInByte < 7 Then ctrInByte = ctrInByte + 1 Else ctrInByte = 0 ctrOutByte = ctrOutByte + 1 End If If ctrOutByte < UBound(tPassword) Then lBlue = CByte(bitsTOdec(Mid$(DecToBits(CLng(lBlue)), 9, 7) & Mid$(tPassword(ctrOutByte), ctrInByte + 1, 1))) Color = RGB(lRed, lGreen, lBlue) Picture2.PSet (CX, CY), Color
Next CY
End Sub '**** Public Sub DeCode_image(X As Long) CX = X Dim tmp As String For CY = 0 To Picture1.Height Step Screen.TwipsPerPixelY
Color = Picture1.Point(CX, CY) DecomposeRGB (Color)
If ctrInByte < 7 Then ctrInByte = ctrInByte + 1 Else ctrInByte = 0 Text1.Text = Text1.Text & Chr$(bitsTOdec(tmp)) tmp = "" ctrOutByte = ctrOutByte + 1 End If If ctrOutByte < UBound(tPassword) Then tmp = tmp & Right$(DecToBits(lRed), 1) If ctrInByte < 7 Then ctrInByte = ctrInByte + 1 Else ctrInByte = 0 Text1.Text = Text1.Text & Chr$(bitsTOdec(tmp)) tmp = "" ctrOutByte = ctrOutByte + 1 End If If ctrOutByte < UBound(tPassword) Then tmp = tmp & Right$(DecToBits(lGreen), 1) If ctrInByte < 7 Then ctrInByte = ctrInByte + 1 Else ctrInByte = 0 Me.Caption = tmp Text1.Text = Text1.Text & Chr$(bitsTOdec(tmp)) tmp = "" ctrOutByte = ctrOutByte + 1 End If If ctrOutByte < UBound(tPassword) Then tmp = tmp & Right$(DecToBits(lBlue), 1) DoEvents Next CY
End Sub Bonne lecture et merci encore. Vautour32
|
|
|
Cette discussion est classé dans : you, to, of, software, updates
Répondre à ce message
Sujets en rapport avec ce message
recherche deux code soure [ par bkackhawk ]
¶Bonjour,¶je voudrais savoir si il y a deja code source pour faire ceci:¶1*¶ code source pour cree un compresseur comme winrar mais sous une extensio
JavaScript vers VB [ par marinmarais ]
Bonjour à tous,Permettez-moi de vous présenter mon problème :J'ai récupéré un code source (dans le domaine public ;-) ) en Javascript permettant de c
transformation of picture [ par beebrs ]
hello -i need to reduce the size of a picture using a VB script without loosing the quality of this picture-how can i integrate photo_ editor with th
limite du nombre de variables publiques [ par Zylott ]
slt, Moi aussi je suis embeté avec une grosse app ... mon souci est que vb m'affiche 'out of memory' (rien de plus), il me propose les boutons [ok] ou
URGENT : Système de vote [ par gribouillex ]
Je change ma question de catégorie, je m'étais trompé...désolé... Bonjour,En tant qu'autodidacte en visual basic
high speed bit transfer on usb [ par balek84 ]
Hi,I just want to know if i will have some problems with my usb interface. I want to put on usb 4 serial data of 24bits (96bits), 2 serial data of 12b
Recherche un tuto simple et complet sur les forms et/ou un solution [ par moimatthieu ]
BonjourJe recherche un tutoriel simple et complet sur les formes parce que j'y comprnd vraiment rien à leur fonctionnement alors ça me prend la tête.J
pagesetup [ par DanMor498 ]
quelqu'un peut me dir pourquoi ca fonctionne pas ce codeHabituellement lorsque que je clique pageset cela doit fonction ouvrir la boite de dialog de
det matrice et inversion [ par maldini2310 ]
bjr voila ci dessous la routine pr le produit matriciel ,mais j arrive pas pr faire un bouton qui calcule le détérminant des matrices et l inversion d
Livres en rapport
|
Téléchargements
Logiciels à télécharger sur le même thème :
|