Toon posts:

tripledes asp naar php(2)

Pagina: 1
Acties:
  • 32 views sinds 30-01-2008

Verwijderd

Topicstarter
[php]
<?

$key="1234567890";


//encoded: http://www.aspsimply.com/aspnet/CryptoASPX.aspx
$crypttext = "XJamKoU3knTaVgSXPI4dKDKSBBePymeh3KzL2fYcrsuJzg2vgYBMLOhNHv67QrQ1AnHdacJS4KvkS85vtBeeqa7EJFPgGbRa";

$iv_size = mcrypt_get_iv_size(MCRYPT_3DES, MCRYPT_MODE_ECB);
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);

print " - ".mcrypt_decrypt(MCRYPT_3DES, $key, base64_decode($crypttext), MCRYPT_MODE_ECB, $iv)."<BR>";
print " - ".mcrypt_decrypt(MCRYPT_3DES, $key, base64_decode($crypttext), MCRYPT_MODE_CBC, $iv)."<BR>";
print " - ".mcrypt_decrypt(MCRYPT_3DES, $key, base64_decode($crypttext), MCRYPT_MODE_CFB, $iv)."<BR>";
print " - ".mcrypt_decrypt(MCRYPT_3DES, $key, base64_decode($crypttext), MCRYPT_MODE_OFB, $iv)."<BR>";
print " - ".mcrypt_decrypt(MCRYPT_3DES, $key, base64_decode($crypttext), MCRYPT_MODE_NOFB, $iv)."<BR>";

?>
[php]

Wat gaat er fout? Met asp ge-encode en nu kan hij niet decode.....


:?

[ Voor 12% gewijzigd door Verwijderd op 02-02-2005 16:25 ]


  • NMe
  • Registratie: Februari 2004
  • Laatst online: 15-04 22:07

NMe

Quia Ego Sic Dico.

Wat wil je doen? Wat doet dit? Wat heb je zelf al geprobeerd? En boven al: wat is er mis met je vorige topic, dat nog steeds open is? :?

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


  • gorgi_19
  • Registratie: Mei 2002
  • Laatst online: 13:38

gorgi_19

Kruimeltjes zijn weer op :9

Zie P&W FAQ - De "quickstart"

Een lap code met de opmerking: "Hij doet het niet" doen we niet aan in Programming & Webscripting :) Sowieso heb je al een ander topic lopen :)

Digitaal onderwijsmateriaal, leermateriaal voor hbo


Dit topic is gesloten.