javascript / java encryption URL parameter string

This project received 19 bids from talented freelancers with an average bid price of $149 USD.

Get free quotes for a project like this
Project Budget
$30 - $250 USD
Total Bids
Project Description

I need to encrypt/decrypt my url parameter string values in Javascript(client) and JSP (java server side) Check Stanford Javascript Crypto Library to encrypt values before passing ex. [url removed, login to view]

In Javascript - SJCL code

[url removed, login to view]("password", "data")

in JSP

/ wrap key data in Key/IV specs to pass to cipher

SecretKeySpec key = new SecretKeySpec(keyBytes, "DES");

IvParameterSpec ivSpec = new IvParameterSpec(ivBytes);

Cipher cipher = [url removed, login to view]("DES/CBC/PKCS5Padding");

Encryption would go like this

[url removed, login to view](Cipher.ENCRYPT_MODE, key, ivSpec);

byte[] encrypted= new byte[[url removed, login to view]([url removed, login to view])];

int enc_len = [url removed, login to view](input, 0, [url removed, login to view], encrypted, 0);

enc_len += [url removed, login to view](encypted, enc_len);

... and decryption like this

[url removed, login to view](Cipher.DECRYPT_MODE, key, ivSpec);

byte[] decrypted = new byte[[url removed, login to view](enc_len)];

int dec_len = [url removed, login to view](encrypted, 0, enc_len, decrypted, 0);

dec_len += [url removed, login to view](decrypted, dec_len);

The above snippets are just examples from Google . I want a working encryption code that matches Javascript and Java algorithm

Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online