Post by Peter on Oct 27, 2004 11:18:01 GMT
Code created by Webworldx[/color]
Board Header:
Board Footer:
It's virtually uncrackable, once you've finished your message, hit the encrypt button. Type the username of the person you want to be able to see the message, and it does the encryption for you. Post the thread and you'll notice in place of the numbers you had, it'll bring up some ƸƺƼ and other characters, different users will see different things there, but only the person you encrypted the message to will be able to see the full one.
Currently it doesn't support things like BBCode and Code tags etc, the user will just get [code] instead, but if you're posting normal messages, it's great! I might add support for multiple users in the future, although it'll mean the code gets longer.
Board Header:
<script>
var iUser=""
for (i=0;i<document.links.length;i++){
if(document.links[i].href.match("profile&username=")){
iUser=RegExp.rightContext
}}
</script>
Board Footer:
<script>
/*
High Level Post Encryption v1
by Webworldx
SolidSnake Designs 2004
*/
function doEncrypt(){
var iText=document.postmodify.message.value
var atUser=prompt("Enter the username of the person who can read this message","username")
if(!atUser) return;
var encryptUser=encryptText=""
for(i=0;i<atUser.length;i++){
encryptUser=Math.floor(encryptUser) + atUser.charCodeAt(i)
}
for(i=0;i<iText.length;i++){
encryptText+=Math.floor(iText.charCodeAt(i)) + Math.floor(encryptUser) + "A"
}
document.postmodify.message.value="Encrypted--" + encryptText
}
var iTD=document.getElementsByTagName('TD')
if(location.href.indexOf("action=post") != -1){
for (i=0;i<iTD.length;i++){
if (iTD.width="23%" && iTD[i].getElementsByTagName('FONT').length>0 && iTD[i].getElementsByTagName('FONT')[0].innerHTML.match("Message:")){
iTD[i].innerHTML+="<BR /><span onClick='doEncrypt()' onmouseover='this.style.cursor=\"hand\"'><b>Encrypt Message</b></span>"
}}}
if (location.href.indexOf("action=display") != -1){
var iTD=document.getElementsByTagName('TD')
for(i=0;i<iTD.length;i++){
if(iTD[i].className.match('windowbg') && iTD[i].vAlign=="top" && iTD[i].width=="80%"){
var iFont = iTD[i].getElementsByTagName('FONT')
for(j=0;j<iFont.length;j++){
if (iFont[j].size=="2" && iFont[j].parentNode.align != "left" && iFont[j].innerHTML.match("Encrypted--") ){
var encryptedPost=RegExp.rightContext.split(/A/g)
var iEncryptedUser=0
for(k=0;k<iUser.length;k++){
iEncryptedUser=Math.floor(iEncryptedUser)+ iUser.charCodeAt(k)
}
iFont[j].innerHTML=""
for(k=0;k<encryptedPost.length-1;k++){
iFont[j].innerHTML+=String.fromCharCode(Math.floor(encryptedPost[k]) - Math.floor(iEncryptedUser))
}
}}}}}
</script>
It's virtually uncrackable, once you've finished your message, hit the encrypt button. Type the username of the person you want to be able to see the message, and it does the encryption for you. Post the thread and you'll notice in place of the numbers you had, it'll bring up some ƸƺƼ and other characters, different users will see different things there, but only the person you encrypted the message to will be able to see the full one.
Currently it doesn't support things like BBCode and Code tags etc, the user will just get [code] instead, but if you're posting normal messages, it's great! I might add support for multiple users in the future, although it'll mean the code gets longer.