I've been working on RSA encryption using javascript and php for quite some time but i'm not able to do it properly. i'm using the standard RSA.js,BigInt.js and Barrett.js javascript files for the javascript part but the thing that i have noticed is the public exponent is always 10001 or 3 . only then the function works. but the problem is the php file generates a comparatively larger public key exponent. if i use that in the javascript function it crashes.
I would like to implement a simple javascript code encryption(XOR, unicode, etc) using javascript. Could someone tell me where to find a ready javascript implementation of XOR (or of another very known algorithm, simple) for html page? I want that encryption method works reliable on most browsers, at least on MSIE + Firefox + Netscape. As html page based encryptor.
First i need encrypt javascript use some algorithm, that provides compact output. When the protected script first starts, a small decrypter stub is first run that restores all of the original script commands for the browser. (encoded scripts will have a decoder stub prefixed before the code that is actually executed). This method will provide protection from machines, like email harvesters, bots, software etc - not from human. But this is fully enough for me.
Yes, I know it's not a solid form of encryption, but this was not my goal when beginning this script. It simply provides a simple encryption when you want things hidden and not read too easily.
Essentially the script takes in a string and a password and uses the password as a key to encrypt the string. It can be used to encrypt short messages or entire pages.
I personally have set up a prompt asking for the password, but you could also use a textbox. You could also set up cookies to remeber the password while the user is on your site, but then you must leave the password in the cookie unencrypted.
I am having trouble with a script that works with the link invisibly which you can see the cursor change to a pointer hand when hovering next to "Email:".It would show if you placed the script in the body portion of a blank HTML page.In my website below I can't figure out why the link doesn't show and is invisible.This emailHide.html.txt file is below, to view in HTML remove the .txt extention and save and view in browser.
I am working on an ajax application to upload and download encrypted files (AES, 128 bit). The encryption has to be on the client side before sending it to the server.
1. Upload The secret key is stored in a javascript variable during the session. To upload a file, javascript code will show a prompt file dialog and the user will select the file. On hitting submit button a javascript code will call a method in a java applet (with secret key and filename as parameters) that will read the file, encrypt it and sent to the server. I am still coding this but seems to me there will be no problem, the applet even doesn't need to be signed.
2. Download This is where I have the problem.I want the user to click the link, the file should be downloaded, decrypted and opened or 'saved as..'. Is this possible to do in a way that the user doesn't have to do intermediate steps, like 1. Download, 2. Decrypt. 3 Open by the corresponding application ? Right now the idea is to use XMLHttpRequest to download the file into a javascript variable and pass it to the applet, the applet will decrypt and save the file into a temporal directory on the user's computer. After that javascript will present a link that the user will click to open the file. But that are 2 steps and I have to sign the applet to be able to write files. Is there a way to do this as a single process (with an unsigned applet) and at the end to show the 'Save as...' dialog so the user will decide wether to save it or to open with some application?
I have a validate function that checks the form for blanks and all, also in the window.onload function I have one where it checks the format of the cc num and exp date. I am trying to get them to work together so that after I have entered the ccnum and ccexp it still makes me enter in the information needed for validate function. Right now after the ccnum and ccexp is entered it passes and submits.
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http:www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http:www.w3.org/1999/xhtml"> <head>
heres my problem i hav done only one of the web pages so far and i want a little pop up message to appear when someone clicks on a website that is not needed here is my code:
This function sums the input (numbers) from many textfields called "Quantity" - in a typical e-Commerce environment - and stops the user if a minimun quantity is not reached code...
The function is working perfectly on IE, but on FF I get the error "rig is not a function" on line code...
I have this function to add some parameters to my XSL and then retransform my XML with it, resulting in a neatly filtered table. It works great, but as soon as I take out the alert, it doesn't do anything anymore, seemingly. This is the function: Code:
I have a webpage with a single form. Under that form I have two separate lists of checkboxes. One set is called eventList the other is assigneeList.I have added two other checkboxes, one is as follows,
What I want to do is, check all the assigneeList boxes with the same value as the checkAllDelegates checkbox. And the same go the other set respectively.Through rummaging around I came up with the following,
Using Firefox's Web Developer Toolbar, I learned that (allegedly) "this.hideError(obj) isn't a function." Event though it is clearly presented in the code as a function:
I'm having a small issue with being able to use the onclick more than once. When I load the page and click the link the request works fine the first time. But if I cancel the request then goto click the link again, nothing happens.
I have a dropdown that when the user selects an item, a function is called. Right it is giving me an error of 'object expected'. Can someone please take a look at my code below and let me know where I am going wrong? When I change the filldesc to an alert, it works fine and returns the correct values.
function filldesc(inputlevel1) { alert(inputlevel1); } <!-- Level one Headings --> <select name='level1' ...
why my onblur() function is not working in javascript.Code is pretty simple. Its a text box with an onblur() function showing an alert. I have used it long back.. But i could not figure out why its not working now.. I dont know what the silly mistake i have made.
I have a questionnaire where each question id is "q(Question number)".. e.g. q1 in ascending order. This was so that I could check all the questions in a WHILE statement, rather than going tediously through 13 questions... My problem is this function I'm using to check the form seems to not work and I don't know what's wrong with it. All relating code has been posted here to show you my method.Note: Question 3 has a 3a and 3b question (ids are q3.1 and q3.2) Though it is not required 3.1 is answered unless the value from question 3 is 0 or -1.
Note: Question 8 and 10 work similarly but they are a "Yes/No" question, so it's a boolean. If either of them have a 1, then q8.1 or q10.1 are required.Note: This function was on an onsubmit in the <form> tag.(Random Related Question: If one Javascript function doesn't work, does it also make all the other javascript nonfunctional? That seems to be the case here.)
if (document.layers) { browserType = "nn4" } else if (document.all) {
I have a button that when clicked, I want to change the content of a DIV. Please see my code below. I'm connecting to the library as I'm using a few others bits and pieces of jQuery.
Code JavaScript: $(document).ready(function(){ function addtoBasket(id){[code]......
I wanted to remove the character " | " typed from keyboard on a ASPX page. But the " | " is on ASPX page which cannot be accessed. Can javascript remove the " | " listed on the ASPX page? <td class="prog-asset"> | <a href="/global_id=002350">Video</a> | <a href="global_id=002350">Photography</a> | <a href="global_id=002350&">Press Releases</a> | </td>
I am trying to build a function that displays the current day for example today is monday so I simply want it to say monday. however I have noticed javascript displays the current day of the week in numbers so:
monday = 1 tuesday = 2 wednesday = 3
and so on, however I cannot see why this function is not working to display the full names:
Code: function datecount(){ var date = current.getDay(); var day = "Current Date Is Undefined" if (date = 1) { var day = "monday" } [Code]...
function calcHeight() { //find the height of the internal page var the_height= document.getElementById('the_iframe').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('the_iframe').height= the_height; }
Above is a simple function that I am using to resize an iframe to match the height of the page it is displaying. It is working in all other browsers including IE7 and IE8 but fails in IE9. Here is a link to the page it is on. [URL]
I have been asked to include a print function in my program so that it works once i have finished the program, the function works at the start of the program but disapears when its finished i dont know where i have went wrong: