<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><br>Am rezolvat. Nu foloseam corect parametrul len la base64 si la decriptare iesea cu totul altceva decat criptasem.<br><div> </div>Alex<div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Drutu Bogdan <bogdandrutu@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Sisteme de Operare <so@cursuri.cs.pub.ro><br><b><span style="font-weight: bold;">Sent:</span></b> Mon, March 28, 2011 9:23:44 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [so] nelamurire functii decriptare (tema 2)<br></font><br>
<br><br><div class="gmail_quote">2011/3/28 Alex Gorunescu <span dir="ltr"><<a rel="nofollow" ymailto="mailto:algorunescu@yahoo.com" target="_blank" href="mailto:algorunescu@yahoo.com">algorunescu@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;">Se pare ca nu sunt singurul care are probleme cu functiile alea. Daca tot nu sunt gata testele, putem avea macar niste exemple de utilizare a functiilor de criptare/decriptare ? Mie nu-mi dau eroare dar textul decriptat nu are vreo legatura cu sursa, deci probabil nu le apelez cum trebuie.<br>
</div></div></blockquote><div>Incearca sa fi putin mai explicit. <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex;"><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;">
<font color="#888888"><div> </div>Alex</font><div><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div class="hm"><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;">
<div class="hm"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Lungu Adrian <<a rel="nofollow" ymailto="mailto:lungu_a_ro@yahoo.com" target="_blank" href="mailto:lungu_a_ro@yahoo.com">lungu_a_ro@yahoo.com</a>><br><b><span style="font-weight:bold;">To:</span></b> <a rel="nofollow" ymailto="mailto:so@cursuri.cs.pub.ro" target="_blank" href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br>
<b><span style="font-weight:bold;">Sent:</span></b> Mon, March 28, 2011 2:46:59
PM<br><b><span style="font-weight:bold;">Subject:</span></b> [so] nelamurire functii decriptare (tema 2)<br></font></div><div class="im"><br>
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top"> Salut. As dori sa aflu daca ptr. decriptarile des, bf respectiv rc2 , parametrul al 2-lea (int len) are vreo restrictie (trebuie sa fie multiplu de 4 octeti , 8 octeti , ceva de genul asta ... in caz ca da, cu ce completam pe in - primul parametru al functiei , pana la cea mai apropiata dimensiune acceptata .. cu '\0' sau vreun alt caracter?) ... mai specific ... in ce context se afiseaza din functia de decriptare mesajul : "This server cannot decrypt des text" </td>
</tr></tbody></table></div></div></div></div></div></blockquote><div><br>Acest mesaj il primesti daca incerci sa decriptezi din aceeasi instanta a serverului mesaje criptate diferit. Cu alte cuvinte cand pornesti un server acesta nu stie sa decripteze decat un singur mesaj.<br>
<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex;"><div><div style="font-family:times new roman, new york, times, serif;font-size:12pt;">
<div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div style="font-family:times new roman, new york, times, serif;font-size:12pt;"><div class="im"><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td style="font:inherit;" valign="top">.. banuiesc ca se testeaza o conditie , apoi se iese cu eroare .. care e conditia aia? (analog pentru bf si rc2) ... intreb pentru ca am incercat sa criptez un string, apoi sa decriptez criptarea, si-mi esueaza cu mesajul de mai sus. base64 decripteaza cu succes, celelalte insa nu.<br>
O zi buna,<br>
Adrian. <br></td></tr></tbody></table><br>
</div></div></div>
</div><br>
</div><br>_______________________________________________<br><span>
<a target="_blank" href="http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii">http://elf.cs.pub.ro/so/wiki/resurse/lista-discutii</a></span><br></blockquote></div><br><br clear="all"><br>-- <br>Bogdan.<br>
</div></div>
</div><br>
</body></html>