Sure, but they'd have to be decrypted before they could be used. (The PHP interpreter has to be able to read them as PHP files.) You can obfuscate them. That's not the same as encrypting them, it just makes it a lot more difficult for anyone to deobfuscate them. (Deobfuscating takes a few minutes the first time you do it, then seconds.)
The functions in this section perform encryption and decryption, and compression and uncompression: encryption decryption AES_ENCRYT() AES_DECRYPT() ENCODE() DECODE() DES_ENCRYPT() DES_DECRYPT() ENCRYPT() Not available MD5() Not available OLD_PASSWORD() Not available PASSWORD() Not available SHA() or SHA1() Not available I think this way uyou can encrypt the username and password.
Zenguard is an obfuscator. Just search for free php obfuscator. There are plenty of them. Most of them do the same thing - change the code into something that has to be evaluated, then stick an eval() around it. And it's that simple to de-obfuscate it. Just run eval() on it and output the result.
Encrypt and Decrypt, and then MD5 etc ..those are good for basic within page or program underneath but they're not very secure, because anybody running that function can decrypt the output, especially with md5. What you can try to do is ..is use PGP (illegal in USA) or GnuPg (legal and basically almost like PGP) and use keypairs ..then have the code decrypt it , and output as a file. you can then decrypt with any PGP/Gnupg reader as long as the correct keypair is placed in. Your other option is to design your own form of encryption. I'm not going to give it to you, but I can give you an example, make strings that are represented as white space Example: $string_white1 = "XdgsgDdjdhdEEe23dhsdhsSSSjdhsd8e333aqah23" $string_white2 = "dfsdfdfdfEEe23dhsdhhjkjhjghy34723hfh" and then turn letters into strings: $a1 = "47234623h23hhdg" $a2= "4658346346fheh" $a3 = "fhgh34734tr3" $b1 = "83462364fhsghd" etc. and have a random function pic a random variable of 'a' or 'b' etc to replace all letters. To decrypt and read it, dump the bulk of scramble text to a text file. Have your handler than read it, by scanning and looking for all 'white space' IF the first 5 strings (letters/number) and last 5 strings are a match to a white space strings first and last 5 ...replace that with white space,taking out that whole white space string. string replace. (make sure to get exact string length to make sure even if first/last 5letters match that string length makes it more accurate so that its not deleting everything with those string matches) (you also want a multi-white space and random function to select them in your text file. ) and then reading the rest of the strings that will then be separated by white space, have it match the string to the letters in your multi-letter string lists.(just make sure no two strings randomly generated are the same.(use a code to look for match strings and delete them if you dont want to go through and read them all) The object would be to create at least 100 strings for $a, 100 for $b etc. that way people cant look for repeating strings and check the way they're used to match them to words that would have the reoccurring letters. you can use that to convert and send as email, dump as text.txt files into folders on site etc. as long as your encrypt file that holds the PHP scramble code generator is kept in top level web root, where you would keep any connect SQL files etc, it should be as safe as your SQL files, and set the privileges on your folders so they cant be read (standard practice) The nice thing about this personal encoder/decryption, is that you can use it over and over again and not need keypairs. an example of what textfile would look like Encrypt: fhehjwrqw478r89wehr23457834rh34j5690u976iredhuqwdswldjkldgwedjqwkleqwekoyterjkghdfhldgjtr8045yut945utferhjguiyerfywer789457t34ir34287r76347hyt45yreywdweftr623gdewqdgywedyqwuqwsdfhdfsdghfgh76345gry234432r34r3fguergfetythiotrghdfjklghdfgiugfydrtuiyerugyeuiwry645890348905r9023rerugdfjfhjasdy23rwefuh34rjk34th34hr3kg5k3hrfi8wer7r89034h53ywejfweri3io4t58304jdweru384r23kldjfjksdf Decrypted: Hello World