Hi, im a bit new to vb6. Thing is I have to convert this php application to vb6 and im a bit stuck on the decryption module. below is the code, could you please give me some guidelines on how to go about this conversion to vb6. I tried google for the past weeks but no success.

The code below is in php

Thanx

function decrypt($dealerID, $fname)
{

	DEFINE ("Keysize",$dealerID);

	$iv = $dealerID;

	$text_1 = file_get_contents($fname);

	$decrypted = mcrypt_cbc(MCRYPT_TripleDES, (Keysize), $text_1, MCRYPT_DECRYPT, $iv);

	return $decrypted;

}

Recommended Answers

All 2 Replies

What does this function file_get_contents do in PHP ?

What does this function file_get_contents do in PHP ?

It gets the contents of the file being decrypted, the characters inside the file...:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.