rubing Posted January 19, 2008 Share Posted January 19, 2008 There are a number of programs out there such as htmlprotect, which will encrypt your html source code, while still letting it be accessible to browsers. I am particularly interested in doing this to my hyperlinks. Unfortunately, the aforementioned program does not work on php/mysql output. I would like to have the hyperlinks outputted from my mysql database by php be encrypted in the source code and not easily viewable unless clicked on. This would offer a measure of security and detterent from would be cloners as my hyperlinks are my most valuable hard earned data!! Thank-you all for any advice. You are wonderful people!! Well, not all of you, but most of you, Yes!! Especially, anyone who gives me an answer. Peace! Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/ Share on other sites More sharing options...
tinker Posted January 19, 2008 Share Posted January 19, 2008 it's not what your after, give me a moment to find that but this might interest you... Hex: 0x7f.0x00.0x00.0x01 Octal: 0177.0000.0000.0001 try on your local server... Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-443542 Share on other sites More sharing options...
tinker Posted January 19, 2008 Share Posted January 19, 2008 ok, here's a simplistic way to do GET statements... function encodeit($s) { $s = bin2hex($s); return strrev(chunk_split(strrev($s), 2, "%")); } $link = "https://www.somewhere.org?"; $link .= "cmd=".encodeit("exit")."&"; Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-443543 Share on other sites More sharing options...
Daniel0 Posted January 19, 2008 Share Posted January 19, 2008 I'm sorry. You cannot encrypt things and let the user view it. Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-443548 Share on other sites More sharing options...
tinker Posted January 19, 2008 Share Posted January 19, 2008 also if I remember correctly the status bar decodes it, so you'll want to sort that if you use it... as for user's seeing it, goes a little like: <a href='0177.0000.0000.0001?cmd=%5f%78%63%6c%69%63%6b'>linky</a> by way this isn't encryption, it's encoding it is possible to encrypt the GET part of the link totally using whatever algorithm you want but you need to work your protocol out and implement it on both sides... Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-443555 Share on other sites More sharing options...
rubing Posted January 19, 2008 Author Share Posted January 19, 2008 Really cool stuff!! I'm still a noob, so might take a while to fully understand and implement. So, I guess these links will not be readable, but they could still be copied and used?? Maybe I should just copy the output of my php page and then encrypt it as html....sort of defeats the dynamic aspect and makes a lot of extra work! Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-443558 Share on other sites More sharing options...
tinker Posted January 19, 2008 Share Posted January 19, 2008 Maybe I should just copy the output of my php page and then encrypt it as html.... HTML is a markup language, maybe you could call it an encoding, but definitely not encryption! What your wanting to do is encode your html, I believe you just use hex or octal etc... Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-443560 Share on other sites More sharing options...
rubing Posted January 19, 2008 Author Share Posted January 19, 2008 it's not what your after, give me a moment to find that but this might interest you... Hex: 0x7f.0x00.0x00.0x01 Octal: 0177.0000.0000.0001 try on your local server... Tinker, I attempted putting this code in my web page both in the body and in links, but it didn't do anything. Am I missing something. ??? Thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-443706 Share on other sites More sharing options...
rubing Posted January 20, 2008 Author Share Posted January 20, 2008 Encoding, does not seem like it would afford much protection then ??? For now I have settled on encrypting php's html output by using HTMLProtector. I guess it encrypts and decrypts on the fly using some fancy javascript programming. Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444629 Share on other sites More sharing options...
Daniel0 Posted January 20, 2008 Share Posted January 20, 2008 In my opinion what you're trying to do is pointless. I assure you, however you try to restrict me from viewing the HTML I will always be able to get it. It is being stored on my computer and rendered by my browser after all. Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444640 Share on other sites More sharing options...
rubing Posted January 21, 2008 Author Share Posted January 21, 2008 My data has limited inherent value as database information. I am really trying to thwart the UNLIKELY would be leacher of this data for use in the same narrow time window (~ 1 week max), Since there are similar websites to mine. Moreover, I am confident my competitors do not have a master coder such as yourself on the dockett. Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444708 Share on other sites More sharing options...
cooldude832 Posted January 21, 2008 Share Posted January 21, 2008 My data has limited inherent value as database information. I am really trying to thwart the UNLIKELY would be leacher of this data for use in the same narrow time window (~ 1 week max), Since there are similar websites to mine. Moreover, I am confident my competitors do not have a master coder such as yourself on the dockett. can I get a decoder for your cryptic speak? Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444713 Share on other sites More sharing options...
rubing Posted January 21, 2008 Author Share Posted January 21, 2008 OK. ---------ENCRYPTER OFF----------------------- The information I am trying to hide isn't that valuable and doesn't need to be protected for very long. It pertains to entertainment type events in my town. However, I don't want some other dude or newspaper or something to just swipe it off my site and use it on theirs. Since, I am putting so much work into getting it. ----------ENCRYPTER ON-------------------------- Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444716 Share on other sites More sharing options...
cooldude832 Posted January 21, 2008 Share Posted January 21, 2008 you do realize most of us have the free time that if we really wanted to coudl break through any thing you write Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444717 Share on other sites More sharing options...
rubing Posted January 21, 2008 Author Share Posted January 21, 2008 Yes, but you have no reason to. Why would you waste your time prying open what are for you some 'child proof' locks on my website. Just for the lame challenge?? I highly doubt it! However, I am sure there are people who would pay for a program that would do this automatically, if it doesn't already exist. $$ Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444728 Share on other sites More sharing options...
cooldude832 Posted January 21, 2008 Share Posted January 21, 2008 Yes, but you have no reason to. Why would you waste your time prying open what are for you some 'child proof' locks on my website. Just for the lame challenge?? I highly doubt it! However, I am sure there are people who would pay for a program that would do this automatically, if it doesn't already exist. $$ I take the child locks off stuff all the time that is what I get paid to do! Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444730 Share on other sites More sharing options...
rubing Posted January 21, 2008 Author Share Posted January 21, 2008 Good. I'll keep you in mind the next time I need to hire a lockbreaker. Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444736 Share on other sites More sharing options...
KrisNz Posted January 21, 2008 Share Posted January 21, 2008 You should read this Protect Your Code and Graphics - Or Not If you think the information you have is so exclusive/valuable then you perhaps you should be looking at ways of generating revenue by allowing access to that information rather than trying to discourage people from stealing it. Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444745 Share on other sites More sharing options...
rubing Posted January 21, 2008 Author Share Posted January 21, 2008 hmmm very interesting! I was searching the web for an article of this kind, but could not find it. Thank you! My website is over at http://www.birminghammusiclive.com. This website gives weekly listings of live music and hyperlinks directly to musician pages. It takes a lot of time to look up all those bands and retrieve all the links, music category, etc... Of course, anybody can look up a band name at myspace for themselves. So, its really not that valuable. The main value is in the convenience that it affords users. I highly doubt they would pay for this information. Maybe if I could also tell them all the cover charges and other kind of stuff...I don't know. Quote Link to comment https://forums.phpfreaks.com/topic/86772-encrypt-phpmysql-output/#findComment-444751 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.