2007-11-04, 12:56 AM
Hi, I have a C application I've written for a polygraphic-substitution cipher. I want to implement this on my forum in custom myCode with
I want to replace the variable "$1" with the encoded or decoded text respectively, but I would have to call an external script; something like a cgi or a php script to call the C application. I'm not sure if MyBB supports this or how it would be done. To be more clear, can I specify php code inside of the myCode replacement, or is it just HTML. I'm also looking to pipe the encrypted or decrypted strings into something like the code tag. So if I typed something like
"[encode]This is a secret message[/encode]"
Only instead of "CODE" have it say "ENCRYPTED" or "DECRYPTED" respectively.
I assume I can just use the code class from my CSS and a div or span tag, but my templates are a bit customized, so I'm not sure.
Any help with this would be very appreciated. I mostly just need details on how the myCode replacement works, but if anyone has any suggestions on how to do this in php or cgi with POST (important because the encrypted segments are very large ) method calls, let me know. My C applications reads from standard input or a file and writes to standard output or a file, so I think it should work will with a php script or perhaps even a simple bash script.
I can post the applications themselves, but not the source code; I don't wish to release that to anyone yet. This cipher is mostly a pet project of mine, but considering the sensitive nature of encryption like this, I wouldn't want someone to use the source, change the key, and then use the structure of my cipher for anything mischievous. If it's closed-source, at least any code generated with it won't ever be used for wrong-doing because of how easily decrypted it would be. I thought it might be useful on my forum however, because we often share bits and pieces of programming code, and this often leads to many webcrawlers scanning the code. Any search engine or crawler will simply see this random code instead of anything anything else.
[encode][/encode]
and[decode][/decode]
I want to replace the variable "$1" with the encoded or decoded text respectively, but I would have to call an external script; something like a cgi or a php script to call the C application. I'm not sure if MyBB supports this or how it would be done. To be more clear, can I specify php code inside of the myCode replacement, or is it just HTML. I'm also looking to pipe the encrypted or decrypted strings into something like the code tag. So if I typed something like
"[encode]This is a secret message[/encode]"
E047F086E086D113B131F087G116C132D065E134G116B073G076D106G078B112C132B093F077F115G116F067F085G078C233
Only instead of "CODE" have it say "ENCRYPTED" or "DECRYPTED" respectively.
I assume I can just use the code class from my CSS and a div or span tag, but my templates are a bit customized, so I'm not sure.
Any help with this would be very appreciated. I mostly just need details on how the myCode replacement works, but if anyone has any suggestions on how to do this in php or cgi with POST (important because the encrypted segments are very large ) method calls, let me know. My C applications reads from standard input or a file and writes to standard output or a file, so I think it should work will with a php script or perhaps even a simple bash script.
I can post the applications themselves, but not the source code; I don't wish to release that to anyone yet. This cipher is mostly a pet project of mine, but considering the sensitive nature of encryption like this, I wouldn't want someone to use the source, change the key, and then use the structure of my cipher for anything mischievous. If it's closed-source, at least any code generated with it won't ever be used for wrong-doing because of how easily decrypted it would be. I thought it might be useful on my forum however, because we often share bits and pieces of programming code, and this often leads to many webcrawlers scanning the code. Any search engine or crawler will simply see this random code instead of anything anything else.