Autor Beitrag
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: So 27.05.07 22:09 
Hi
Ich verschlüssle Texte mit Blowfish und benutze dafür den CipherManager von DEC.
Wie bau ich nun ein das angezeigt wird, wenn man ein falsches Passwort eingegeben hat?
Normalerweise gibt er einfach den falsch entschlüsselten Text aus.
Vielleicht mit einer MD5-Checksumm? Oder CRC?

MfG
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: So 27.05.07 22:11 
Du könntest einen MD5-Hash oder SHA1-Hash des Klartextes abspeichern (vielleicht noch mit nem Salt), und nach der Entschlüsselung wieder prüfen.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 27.05.07 22:22 
Moin!

Mit den Hashes klappt das sicherlich, ist aber doch etwas oversized, findet ihr nicht? ;)

Häng eine CRC32 an den Text, lass über den gesamten entschlüsselten Block CRC32 laufen, wenn 0 rauskommt, ist das Kennwort OK. :idea:

Am Rande: Ist allerdings bekannt, dass du eine Prüfsumme (egal welche) drin hast, dann ist damit die Sicherheit reduziert! :mahn:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Coder Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: So 27.05.07 22:25 
Danke euch beiden.

user profile iconNarses hat folgendes geschrieben:
Am Rande: Ist allerdings bekannt, dass du eine Prüfsumme (egal welche) drin hast, dann ist damit die Sicherheit reduziert! :mahn:

Dann lasse ich es lieber raus.
Ist nicht so wichtig und soll OpenSource werden.

MfG