2021-02-11 22:07:00 +00:00
|
|
|
|
/*
|
|
|
|
|
Snow10 - Whitespace steganography. electronic invisible ink.
|
|
|
|
|
Copyright (C) 2021 Kevin Froman https://ChaosWebs.net/
|
|
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
2021-02-14 07:07:09 +00:00
|
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
|
|
function(){
|
|
|
|
|
|
|
|
|
|
var characterSet = ['', '<27>', ""]
|
|
|
|
|
let encodeForm = document.getElementsByTagName("form")[0]
|
|
|
|
|
|
|
|
|
|
encodeForm.onsubmit = function(e){
|
|
|
|
|
|
|
|
|
|
let msg: HTMLTextAreaElement = document.getElementsByTagName('textarea')[0]
|
|
|
|
|
let msgText: string = msg.value;
|
|
|
|
|
let encoded = new Uint16Array(msgText.length)
|
|
|
|
|
|
|
|
|
|
for (let i = 0; i < msgText.length; i++){
|
|
|
|
|
|
|
|
|
|
encoded[i] = msgText.charCodeAt(i)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
console.debug(encoded)
|
|
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
)
|