initial commit
This commit is contained in:
27
encrypt.php
Normal file
27
encrypt.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset=utf-8>
|
||||
<title>Encrytion and stuff</title>
|
||||
<meta name=viewport content=width=device-width,initial-scale=1.0>
|
||||
<link rel=stylesheet href=style.css type=text/css>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
function wordCount(thing) {
|
||||
regex = /(\S\s)|(([A-Z]|[a-z])(\.|\!|\?|\z))/;
|
||||
numOfParenthesis = 5; //how many par. sets are in the regex
|
||||
words = (thing.value.split(regex).length-1)/numOfParenthesis;
|
||||
document.getElementById("counter").innerHTML = words;
|
||||
}
|
||||
</script>
|
||||
<form action=submit.php method=POST>
|
||||
<h2 id=counter>0</h2>
|
||||
<textarea onkeyup=wordCount(this) placeholder='Write your words here...' name=words></textarea>
|
||||
<input id=key type=text name=key placeholder='Decryption key' required>
|
||||
<button type=submit name=submit value=submit id=submitWriting>SUBMIT</button>
|
||||
</form>
|
||||
<br>
|
||||
<p class=center><a href=/cs/decrypt.php>Decrypt a file</a></p>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user