crypt11.htm
1186982b816ab9856a07da89116511659d8904005f312da7a90e3fb0695176a1
<html>
<head>
<title>E-HACK's WilterCrypt v1.1</title>
<script language="JavaScript">
<!-- Hide from shitty browsers
/**********************************\
* E-HACK's WilterCrypt v1.1 *
* JavaScript Crypto-System *
* *
* © 1997 ehack@wilter.com *
* http://www.ilf.net/wilter/ehack/ *
* Feel free to use this script on *
* your pages, but you must leave *
* this header in the source *
* Do not modify this in any way *
* Long Live Wiltered Fire! *
\**********************************/
function Cypher(form) {
var Ret = crypt (form.textarea1.value, form.key.value)
form.textarea2.value = Ret
}
/*I'm still working on a way to make it so the key can be something
other than the numbers 1 to 63, it was easier to make it work with
these numbers because of the number of letters numbers and characters
that this will accept, the only punctuation it allows is a period.
*/
function crypt (OriginalString, CipherValue) {
Ref="0123456789abcdefghijklmnopqrstuvwxyz. -ABCDEFGHIJKLMNOPQRSTUVWXYZ"
CipherValue = parseInt(CipherValue)
var Temp=""
for (Count=0; Count < OriginalString.length; Count++) {
var TempCharicter = OriginalString.substring (Count, Count+1)
var Conv = yeah(TempCharicter)
var Cipher=Conv^CipherValue
Cipher=that(Cipher)
Temp += Cipher
}
return (Temp)
}
function yeah (Charicter) {
return (Ref.indexOf(Charicter));
}
function that (Val) {
return (Ref.substring(Val, Val+1))
}
function Directions()
{
alert("DIRECTIONS:\rEnter text into the \"Input box\", choose a key between 1 and 63"
+ " enter it into the \"key box\", click the \"CRYPT\" button and your"
+ " cyphertext will show up in the \"Output box\"");
}
function About()
{
alert("\rWilterCrypt v1.1\r© 1997 E-HACK\rehack@wilter.com"
+ "\r http://www.ilf.net/wilter/ehack/");
}
// end hiding-->
</script>
</head>
<body>
<br><h1><center>E-HACK's WilterCrypt v1.1</h1></center>
<br><hr><br>
Ok, here's what I've changed for WilterCrypt v1.1. Version 1.0 did not allow
spaces and I hadn't really thought about the fact that JavaScript would allow
them, so, this version allows spaces, it still has the same number of letters
and the same range for keys (1-63) I had messed around with makin' one with
2 keys, thinking that it would be MUCH more secure, but I found that it could
be decrypted with only 1 key, making it pretty much useless, I'm going to be
working on this a lot more, and v2.0 should be able to accept any key given
to it (although, I'd expect long keys to take a while on some machines). The
charicters that this will now accept are <br>
"0123456789abcdefghijklmnopqrstuvwxyz. -ABCDEFGHIJKLMNOPQRSTUVWXYZ"
<br>As you may have noticed, I got rid of the underscore _ and tildea ~ coz
I didn't think people would really use either that much I replaced them with
a space and a dash -...I'm still working on this in my spare time, I expect
v2.0 to be out around february or march, I dunno though.
<br>Thanks,<br>E-HACK<br><br><a href="index.html">Back to my JavaScripts page</a>
<br><hr><br>
<!--BEGIN FORM FOR WILTERCRYPT-->
<center>
<table border=5 width=90%>
<th>
WilterCrypt v1.1 By: <a href="mailto:ehack@wilter.com">E-HACK</a>
</th>
<tr><td align=center>
<form name="wiltercrypt">
Input:<br>
<textarea rows=5 cols=60 name="textarea1">
</textarea>
</td></tr>
<tr><td align=center>
Output:<br>
<textarea rows=5 cols=60 name="textarea2">
</textarea>
</td></tr>
<tr><td align=center>
Key:<input type="text" name="key" size=4 value="">
<input type="button" name="button" value=" CRYPT " onClick="Cypher(this.form)">
<input type="reset" value=" CLEAR ">
<input type="button" name="directions" value=" DIRECTIONS " onClick="Directions()">
<input type="button" name="about" value=" ABOUT " onClick="About()">
</form>
</td></tr>
</table>
</center>
<!--END FORM FOR WILTERCRYPT-->
<br><br>
Source for WilterCrypt v1.1
<form><textarea rows=10 cols=65>
<html>
<head>
<title>Your Title</title>
<script language="JavaScript">
<!-- Hide from shitty browsers
/**********************************\
* E-HACK's WilterCrypt v1.1 *
* JavaScript Crypto-System *
* *
* © 1997 ehack@wilter.com *
* http://www.ilf.net/wilter/ehack/ *
* Feel free to use this script on *
* your pages, but you must leave *
* this header in the source *
* Do not modify this in any way *
* Long Live Wiltered Fire! *
\**********************************/
function Cypher(form) {
var Ret = crypt (form.textarea1.value, form.key.value)
form.textarea2.value = Ret
}
/*I'm still working on a way to make it so the key can be something
other than the numbers 1 to 63, it was easier to make it work with
these numbers because of the number of letters numbers and characters
that this will accept, the only punctuation it allows is a period.
*/
function crypt (OriginalString, CipherValue) {
Ref="0123456789abcdefghijklmnopqrstuvwxyz. -ABCDEFGHIJKLMNOPQRSTUVWXYZ"
CipherValue = parseInt(CipherValue)
var Temp=""
for (Count=0; Count < OriginalString.length; Count++) {
var TempCharicter = OriginalString.substring (Count, Count+1)
var Conv = yeah(TempCharicter)
var Cipher=Conv^CipherValue
Cipher=that(Cipher)
Temp += Cipher
}
return (Temp)
}
function yeah (Charicter) {
return (Ref.indexOf(Charicter));
}
function that (Val) {
return (Ref.substring(Val, Val+1))
}
function Directions()
{
alert("DIRECTIONS:\rEnter text into the \"Input box\", choose a key between 1 and 63"
+ " enter it into the \"key box\", click the \"CRYPT\" button and your"
+ " cyphertext will show up in the \"Output box\"");
}
function About()
{
alert("\rWilterCrypt v1.1\r© 1997 E-HACK\rehack@wilter.com"
+ "\r http://www.ilf.net/wilter/ehack/");
}
// end hiding-->
</script>
</head>
<body>
The Body of your page goes here...
And this is the form for WilterCrypt
<!--BEGIN FORM FOR WILTERCRYPT-->
<center>
<table border=5 width=90%>
<th>
WilterCrypt v1.1 By: <a href="mailto:ehack@wilter.com">E-HACK</a>
</th>
<tr><td align=center>
<form name="wiltercrypt">
Input:<br>
<textarea rows=5 cols=60 name="textarea1">
</textarea>
</td></tr>
<tr><td align=center>
Output:<br>
<textarea rows=5 cols=60 name="textarea2">
</textarea>
</td></tr>
<tr><td align=center>
Key:<input type="text" name="key" size=4 value="">
<input type="button" name="button" value=" CRYPT " onClick="Cypher(this.form)">
<input type="reset" value=" CLEAR ">
<input type="button" name="directions" value=" DIRECTIONS " onClick="Directions()">
<input type="button" name="about" value=" ABOUT " onClick="About()">
</form>
</td></tr>
</table>
</center>
<!--END FORM FOR WILTERCRYPT-->
and this is below the form for wiltercrypt...
</textarea>
</form>
<br><br><h3>
© 1997 E-HACK (<a href="mailto:ehack@wilter.com">ehack@wilter.com</a>)
<br><br><br>