Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 artisan in php?

0 Answers  


How to define a function with any number of arguments?

0 Answers  


Can a php code encryted? Is it possible to execute the php file which is encrypted(without decrypting), if so pleaze tell me the way.

3 Answers  


Where are cookies stored php?

0 Answers  


Is false empty php?

0 Answers  






Can I learn php in a month?

0 Answers  


In PHP, fgets() is used to read a file one line at a time. State Whether True or False?

0 Answers  


What is session_start () in php?

0 Answers  


What is the difference between array_merge() and array_merge_recursive() in php?

0 Answers  


What are the difference between overloading and overriding in oops?

0 Answers  


What is the use of dual table in mysql?

0 Answers  


What are examples of independent and dependent variables?

0 Answers  






Categories