How to make a file encrypt and decrypt?

Answers were Sorted based on User's Feedback



How to make a file encrypt and decrypt?..

Answer / prabhu

md5_file()...
example...



<?php
$filename = "test.txt";
$md5file = md5_file($filename);
echo $md5file;
?>

output:5d41402abc4b2a76b9719d911017c592

Is This Answer Correct ?    14 Yes 3 No

How to make a file encrypt and decrypt?..

Answer / shailesh

Hello

You can use base64_encode and base64_decode for file encrypt
and decrypt.

With base64_encode you can encrypt the file name. and
With base64_decode you can decrypt the file name.

Thanks

Is This Answer Correct ?    6 Yes 1 No

How to make a file encrypt and decrypt?..

Answer / michael jerold

you have to use md5() or CRYPT() it functionally work well i
got result

Is This Answer Correct ?    0 Yes 0 No

How to make a file encrypt and decrypt?..

Answer / c.balamurugan

<html>
<body>
<form action="a.php" method="post" enctype="multiform/form-
data">
//<form element>//
</form>
</body>
</html>

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More PHP Interview Questions

is anybody upload more than 100mb file using PHP upload script in ONLINE SERVER (using .htaccess file)? please give some idea...

1 Answers  


Where php language is used?

0 Answers  


How can you declare the array in php?

0 Answers  


when ever the user logged in the database table the current registered date will be appeared

3 Answers  


Do csrf tokens expire?

0 Answers  


How to Retrieve the Session ID of the Current Session?

0 Answers  


What is the difference between $message and $$message in php?

0 Answers  


What is composer json?

0 Answers  


What is csrf token and how will you add csrf token in ajax?

0 Answers  


Explain Type hinting in PHP?

0 Answers  


What is the difference between the functions unlink and unset?

8 Answers   Small Firm, TCS,


How many php functions are there?

0 Answers  


Categories