RSA Encryption Function Is Not Working

Dec 14, 2010

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.

View 1 Replies


ADVERTISEMENT

Javascript Encryption XOR, Etc

Jul 7, 2006

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.

View 2 Replies View Related

Yet Another Encryption Script

Dec 28, 2003

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.

View 2 Replies View Related

Encryption And Decryption By Aes Using Ecdh Key?

Nov 3, 2009

i need to know how do encryption by aes using ecdh key in java.

View 1 Replies View Related

Email Encryption Script Link Not Showing

Nov 9, 2011

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.

View 4 Replies View Related

Transparent Encryption For File Upload / Download?

Jul 10, 2011

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?

View 7 Replies View Related

Toggle Function Not Working When Being Called From Another Function?

Jan 12, 2010

I have a toggle function that works brilliantly

Code:
// Toggle
function toggleDiv(elementshow, element, elementhide, elementhide2, elementhide3){

[code]....

View 4 Replies View Related

One Function Not Working With Onload Function?

Nov 26, 2011

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>

[Code]....

View 3 Replies View Related

JS Function Not Working With IE / Fix It?

Apr 7, 2009

I have this JS function that swap an image with another one (same name + "_big") code...

This code works well on every browser except Internet Explorer.

Someone know how to fix this?

View 3 Replies View Related

Function Not Working In IE8?

Jan 6, 2011

i have a form validator that works fine in chrome, safari, firefox...but not IE 8.. i'm pretty new at javascript... any help is appreciated

function detect()
{
if(navigator.cookieEnabled == false)

[code]....

View 8 Replies View Related

Pop Up Function Not Working

Sep 28, 2007

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:

View 2 Replies View Related

Function Working On IE But Not On FF / What To Do?

Mar 30, 2009

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...

View 5 Replies View Related

Function Not Working Without Alert

Jul 23, 2005

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:

View 1 Replies View Related

Check All Function Not Working?

Nov 24, 2010

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,

Code:

<input name="checkAllEvents" type="checkbox" id="checkAllEvents" onclick="checkAll(this.id, 'eventList')" />

The other is,

Code:

input name="checkAllDelegates" type="checkbox" id="checkAllDelegates" onclick="checkAll(this.id, 'assigneeList')" />


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,

Code:

<script type="text/javascript">
$(function checkAll(id, name) {
$("INPUT[@name=" + name + "][type='checkbox']").attr('checked', $('#' + id).is(':checked'));
});
</script>

However nothing seems to happen when I check the boxes, what am I doing wrong?

View 4 Replies View Related

Isn't HideError() Function Working?

Mar 21, 2010

I'm presently trying to work through a tutorial at [URL]....the code, as written in the tutorial fails when it comes to:

obj.onchange = function()
{
this.hideError(obj);
};

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:

[Code]...

View 2 Replies View Related

Function With Onclick Only Working Once

Jan 30, 2011

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.

[Code]...

View 2 Replies View Related

Onchange Function Not Working

Aug 18, 2006

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'
...

View 6 Replies View Related

OnBlur() Function Not Working?

Dec 29, 2009

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.

View 4 Replies View Related

Click Function Not Working?

Feb 15, 2012

why isn't this working?

$('body').find(".overcolor").click(function(){
alert("hi");
});

View 1 Replies View Related

Pass A Value To Function Not Working

Jun 6, 2010

I am trying to pass a value to another function, seems to work with the other function i have but not this one?

any reasons why this wont work?[code]...

View 1 Replies View Related

CheckForm Function Not Working?

Apr 13, 2009

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) {

[code]....

View 3 Replies View Related

JQuery :: Function Is Not Working?

May 12, 2011

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]......

View 1 Replies View Related

RemoveChild Function Is Not Working?

Nov 17, 2011

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>

View 3 Replies View Related

Current Day Function Not Working

Apr 12, 2010

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]...

View 5 Replies View Related

CalcHeight Function Not Working In IE9

May 7, 2011

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]

View 12 Replies View Related

Print Function Not Working?

May 31, 2011

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:

here is my program

<html>
<head>
<title>Book Program</title>
<script type="text/javascript">

[Code]....

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved