Click here to Skip to main content
15,919,434 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Paypal integration Pin
DoctorMick18-Jun-09 1:20
DoctorMick18-Jun-09 1:20 
QuestionGet IP address Pin
raushan_918-Jun-09 0:34
raushan_918-Jun-09 0:34 
AnswerRe: Get IP address Pin
Vimalsoft(Pty) Ltd18-Jun-09 0:50
professionalVimalsoft(Pty) Ltd18-Jun-09 0:50 
AnswerRe: Get IP address Pin
httplover18-Jun-09 4:44
httplover18-Jun-09 4:44 
QuestionUploading of media files into chunks Pin
Member 391626718-Jun-09 0:18
Member 391626718-Jun-09 0:18 
AnswerRe: Uploading of media files into chunks Pin
Abhishek Sur18-Jun-09 1:38
professionalAbhishek Sur18-Jun-09 1:38 
GeneralRe: Uploading of media files into chunks Pin
Member 391626724-Jun-09 18:42
Member 391626724-Jun-09 18:42 
Questionencryption/decrption problem Pin
Kissy1618-Jun-09 0:14
Kissy1618-Jun-09 0:14 
hai all,
am using the following code for encryption and decryption for a password field.
But when am testing this with TamperIE for web security,there the password is showing in plian text,so any hacker can do anything,
My code is

Private Function Decrypt(ByVal myString As String) As String
cryptDES3.Key = cryptMD5Hash.ComputeHash(ASCIIEncoding.ASCII.GetBytes(Session("salt")))
cryptDES3.Mode = CipherMode.ECB
Dim desdencrypt As ICryptoTransform = cryptDES3.CreateDecryptor()
Dim buff() As Byte = Convert.FromBase64String(myString)
Decrypt = ASCIIEncoding.ASCII.GetString(desdencrypt.TransformFinalBlock(buff, 0, buff.Length))
End Function

Private Function Encrypt(ByVal myString As String) As String
cryptDES3.Key = cryptMD5Hash.ComputeHash(ASCIIEncoding.ASCII.GetBytes(session("salt")))
cryptDES3.Mode = CipherMode.ECB
Dim desdencrypt As ICryptoTransform = cryptDES3.CreateEncryptor()
Dim MyASCIIEncoding = New ASCIIEncoding
Dim buff() As Byte = ASCIIEncoding.ASCII.GetBytes(myString)
Encrypt = Convert.ToBase64String(desdencrypt.TransformFinalBlock(buff, 0, buff.Length))
End Function

The above code is am calling on pageload like
txt_password.text=encrypt(txt_password.text)
str=decrypt(txt_password.text)
It is working perfectly.

But if i tested with TamperIE it is showing plian text.Then how to do this?What i have to use,so that it should not show in plain text for the end user???
Sorry if i disturb u,please let me now the answer

kissy

AnswerRe: encryption/decrption problem Pin
Colin Angus Mackay18-Jun-09 0:21
Colin Angus Mackay18-Jun-09 0:21 
GeneralRe: encryption/decrption problem Pin
Kissy1618-Jun-09 1:11
Kissy1618-Jun-09 1:11 
GeneralRe: encryption/decrption problem Pin
Jassim Rahma11-Apr-13 0:00
Jassim Rahma11-Apr-13 0:00 
AnswerRe: encryption/decrption problem Pin
Colin Angus Mackay18-Jun-09 0:23
Colin Angus Mackay18-Jun-09 0:23 
QuestionWindow.open Pin
Jaydev Jangid18-Jun-09 0:14
Jaydev Jangid18-Jun-09 0:14 
AnswerRe: Window.open Pin
Abhishek Sur18-Jun-09 1:42
professionalAbhishek Sur18-Jun-09 1:42 
AnswerRe: Window.open Pin
httplover18-Jun-09 4:48
httplover18-Jun-09 4:48 
QuestionGetting problem with Treeview Pin
CrazyCoder2618-Jun-09 0:07
CrazyCoder2618-Jun-09 0:07 
AnswerRe: Getting problem with Treeview Pin
CrazyCoder2618-Jun-09 0:42
CrazyCoder2618-Jun-09 0:42 
QuestionLogin Using facebook account+ASP.Net(C#) Pin
Virendrak17-Jun-09 23:47
Virendrak17-Jun-09 23:47 
AnswerRe: Login Using facebook account+ASP.Net(C#) Pin
Colin Angus Mackay18-Jun-09 0:07
Colin Angus Mackay18-Jun-09 0:07 
Questioncss expression? Pin
mrcooll17-Jun-09 23:27
mrcooll17-Jun-09 23:27 
AnswerRe: css expression? Pin
himanshu256118-Jun-09 0:56
himanshu256118-Jun-09 0:56 
GeneralRe: css expression? Pin
mrcooll18-Jun-09 1:57
mrcooll18-Jun-09 1:57 
QuestionHow to call confirm from C#.Net? Pin
YazhiniP17-Jun-09 22:38
YazhiniP17-Jun-09 22:38 
AnswerRe: How to call confirm from C#.Net? Pin
l.laxmikant17-Jun-09 23:05
l.laxmikant17-Jun-09 23:05 
AnswerRe: How to call confirm from C#.Net? Pin
Colin Angus Mackay17-Jun-09 23:05
Colin Angus Mackay17-Jun-09 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.