I've created a web site withe membership and I used hash algorithm with salt to encrypted password which is in .cs page like example below, and then save it in SQL database..
My questions: Is there is a way to call encryption method in client side "to encrypt password then send it to server side" rather server side??? How can do this??? Can you explain for my example?
In Login page I call hash by using
var h = new AESEncryption();
hashSalt = h.ComputeHash(inputstring, "SHA256", salt)
For encrption method in .cs the code is
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Security.Cryptography;
using System.Runtime.InteropServices;
namespace Utils.Encryption
{
[Guid("4EE61A1D-142F-4e8b-B0A2-9C5794ADCDF9")]
public interface AESEncryptionInterface
{
. . . . }
Thank for your suggestion but I'm not expert in using java script I just programmer the C#, so how can I use it if can sending me a simple example to encrypt/decrypt text box, so that it can helping me to understand the method
Member
7 Points
45 Posts
How to call Hash algorthem from server side
Oct 17, 2012 12:23 PM|mkf|LINK
Hi,
I've created a web site withe membership and I used hash algorithm with salt to encrypted password which is in .cs page like example below, and then save it in SQL database..
My questions: Is there is a way to call encryption method in client side "to encrypt password then send it to server side" rather server side??? How can do this??? Can you explain for my example?
In Login page I call hash by using
For encrption method in .cs the code is
All-Star
20376 Points
6505 Posts
ASPInsiders
MVP
Re: How to call Hash algorthem from server side
Oct 17, 2012 12:28 PM|BrockAllen|LINK
Here's a AES implementation in JavaScript:
http://crypto.stanford.edu/sjcl/
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
Contributor
2152 Points
501 Posts
Re: How to call Hash algorthem from server side
Oct 20, 2012 06:06 PM|h.zahed@live.com|LINK
Hi,
Two other javascript encryption libraries:
http://point-at-infinity.org/jsaes/
http://www.vincentcheung.ca/jsencryption/
MCP-MCTS-MCPD
Mark the post as , if it helped you in solving your question.
All-Star
20376 Points
6505 Posts
ASPInsiders
MVP
Re: How to call Hash algorthem from server side
Oct 28, 2012 11:44 AM|BrockAllen|LINK
An interesting follow-up to this conversation about doing crypto in JavaScript:
http://www.matasano.com/articles/javascript-cryptography/
DevelopMentor | http://www.develop.com
thinktecture | http://www.thinktecture.com/
Member
7 Points
45 Posts
Re: How to call Hash algorthem from server side
Oct 29, 2012 12:30 PM|mkf|LINK
Thank for your suggestion but I'm not expert in using java script I just programmer the C#, so how can I use it if can sending me a simple example to encrypt/decrypt text box, so that it can helping me to understand the method