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

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

2 Answers  


How does header() work . What do they tell the server same question for SESSIONS

2 Answers   Yahoo,


What is isset post?

0 Answers  


What is the default time in seconds for which session data is considered valid?

0 Answers  


Does php need a closing tag?

0 Answers  






Which is better wamp or xampp?

0 Answers  


How do you identify independent and dependent variables in research?

0 Answers  


How to upload and play video in Php when u r in localhost?

3 Answers   HCL,


Does php 7 support multiple inheritance?

0 Answers  


How to access a Static Member of a Class in PHP?

0 Answers  


Is null or empty c#?

0 Answers  


discuss the issue of software theft in ghana and how it has affected the economy

0 Answers  


Categories