I am storing encrypted password in registry and using it then to log on my
application. However, my objConn.Open(str_connecton_string) crashes the
application if I use the encrypted password.
My connection string works fine with an unencrypted password and looks like:
str_connection_string = "data source=XXXX;initial catalog=dbname;user
ID=username;password=encryptedpassword;connection timeout = 5"
Any help will be appreciated.
--
Dino Buljubasic
Software Developer http://rivusglobal.com 7 5165
Hi Dino,
I hope you are decrypting the password before sending it to the database.
Cheers
Benny
Dino M. Buljubasic wrote: I am storing encrypted password in registry and using it then to log on my application. However, my objConn.Open(str_connecton_string) crashes the application if I use the encrypted password.
My connection string works fine with an unencrypted password and looks like:
str_connection_string = "data source=XXXX;initial catalog=dbname;user ID=username;password=encryptedpassword;connection timeout = 5"
Any help will be appreciated.
Hello,
"Dino M. Buljubasic" <di*************@rivusglobal.com> schrieb: I am storing encrypted password in registry and using it then to log on my application. However, my objConn. Open(str_connecton_string) crashes the application if I use the encrypted password.
Decrypt the password before passing it to the 'Open' method.
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
Hi Herfried,
I will check if there is a way to decript it. I am using MD5 and as I know
it is one way encryption, did not know I can decrypt it, too.
However, I am not decripting the passwords when I get them from database and
everything works just fine. The problem is when I get the encrypted
password from the registry only.
Regards,
--
Dino Buljubasic
Software Developer http://rivusglobal.com
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:uY**************@tk2msftngp13.phx.gbl... Hello,
"Dino M. Buljubasic" <di*************@rivusglobal.com> schrieb: I am storing encrypted password in registry and using it then to log on my application. However, my objConn. Open(str_connecton_string) crashes the application if I use the encrypted password.
Decrypt the password before passing it to the 'Open' method.
Regards, Herfried K. Wagner -- MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
You cannot decrypt MD5 hashes. When you use MD5, you produce a hash, which
is irreversible.
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
"Maybe it's a game called 'Punish the User'"
"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message
news:Zl*******************@news1.telusplanet.net.. . Hi Herfried,
I will check if there is a way to decript it. I am using MD5 and as I know it is one way encryption, did not know I can decrypt it, too.
However, I am not decripting the passwords when I get them from database
and everything works just fine. The problem is when I get the encrypted password from the registry only.
Regards,
-- Dino Buljubasic Software Developer http://rivusglobal.com
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message news:uY**************@tk2msftngp13.phx.gbl... Hello,
"Dino M. Buljubasic" <di*************@rivusglobal.com> schrieb: I am storing encrypted password in registry and using it then to log on my application. However, my objConn. Open(str_connecton_string) crashes the application if I use the encrypted password.
Decrypt the password before passing it to the 'Open' method.
Regards, Herfried K. Wagner -- MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
Hello,
"Dino M. Buljubasic" <di*************@rivusglobal.com> schrieb: Yes, I found it out, too.
A hast can not be decrypted. So, any idea how to solve the problem?
I don't really understand what's your problem. You cannot use the encrypted
password, you need the original password.
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
The problem is following:
- to connect to my application I use a registry password.
- once connected, users do various things and their passwords are stored in
a datatable on an SQL Server.
If hashed, the passwords stored on SQL Server data table work just fine.
If hashed, the password stored in registry when sent to open method via
connection string property throws error 18456
I found what the problem is but have not found the solution to it. The
problem is that a user gets assigned a password when he/she is to be granted
permission to log on SQL server. That password has to match the password
stored in the registry on the machine where my application is running.
However, since I hash that password, it wont match the password I assigned
to that user on SQL Server inside LogIns Manager. One solution (possible)
would be to simply copy the hashed password ASCII string and paste it to the
user's password field on the SQL Server, but I think that is "ein ziemlich
schlampich Weg" to go for it.
Let me know if you have any idea, please. If not, I am just gonna leave it
as it is.
Thank you for the help,
--
Dino Buljubasic
Software Developer http://rivusglobal.com
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl... Hello,
"Dino M. Buljubasic" <di*************@rivusglobal.com> schrieb: Yes, I found it out, too.
A hast can not be decrypted. So, any idea how to solve the problem? I don't really understand what's your problem. You cannot use the
encrypted password, you need the original password.
Regards, Herfried K. Wagner -- MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
Well hashes are actually useful in the fact that no two hashes are the same,
if the input data is different. Which means, you hash the user's password,
then when he/she goes to type in the password, you hash the password that
was entered. If the hashes match, then the passwords match.
--
HTH,
-- Tom Spink, Über Geek
Please respond to the newsgroup,
so all can benefit
"Maybe it's a game called 'Punish the User'"
"Dino M. Buljubasic" <di*************@rivusglobal.com> wrote in message
news:9v*******************@news1.telusplanet.net.. . The problem is following:
- to connect to my application I use a registry password. - once connected, users do various things and their passwords are stored
in a datatable on an SQL Server.
If hashed, the passwords stored on SQL Server data table work just fine. If hashed, the password stored in registry when sent to open method via connection string property throws error 18456
I found what the problem is but have not found the solution to it. The problem is that a user gets assigned a password when he/she is to be
granted permission to log on SQL server. That password has to match the password stored in the registry on the machine where my application is running.
However, since I hash that password, it wont match the password I assigned to that user on SQL Server inside LogIns Manager. One solution (possible) would be to simply copy the hashed password ASCII string and paste it to
the user's password field on the SQL Server, but I think that is "ein ziemlich schlampich Weg" to go for it.
Let me know if you have any idea, please. If not, I am just gonna leave
it as it is.
Thank you for the help,
-- Dino Buljubasic Software Developer http://rivusglobal.com
"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message news:e6**************@TK2MSFTNGP12.phx.gbl... Hello,
"Dino M. Buljubasic" <di*************@rivusglobal.com> schrieb: Yes, I found it out, too.
A hast can not be decrypted. So, any idea how to solve the problem?
I don't really understand what's your problem. You cannot use the encrypted password, you need the original password.
Regards, Herfried K. Wagner -- MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John Victor |
last post by:
In my mysql database, I've stored all the passwords using the PASSWORD()
function. Now I'm running a test and need to compare the password in my php
document to that saved in the database. I used...
|
by: Jill Elaine |
last post by:
I am building an Access 2002 frontend with linked tables to an
encrypted Paradox 7 database. When I first create these linked tables,
I'm asked for the password to the encrypted Paradox database,...
|
by: Fabrizio |
last post by:
(Sorry for the crosspost, but I really don't know which is the right
newsgroup!)
Hi all,
I try to change the password to a user that as to change the password at
first logon:
try
{
|
by: Andre Ranieri |
last post by:
I'm trying to create a login page for customers to log into our corporate
website, our presidents naturally wants the user and password fields to
populate from a cookie so the customer doesn't have...
|
by: scorpion53061 |
last post by:
is it possible to set the database password that you can set in access for a
database from a vb.net application?
|
by: David Garamond |
last post by:
I read that the password hash in pg_shadow is salted with username. Is
this still the case? If so, since probably 99% of all PostgreSQL has
"postgres" as the superuser name, wouldn't it be better...
|
by: Katash |
last post by:
Hello,
I am new to PHP and am working on a login system for my site,
currently supplied passwords are passed to MySQL and stored as md5 hashes,
my question is :- seeing as md5 is 1 way only what...
|
by: julianmoors |
last post by:
Hey,
Currently I'm writing a VB.NET/1.1 app and I need to mask the input for
the password field. Does anyone know how to do this in VB? I've seen a
C# example, but wouldn't know how to convert...
|
by: DarthPeePee |
last post by:
Hello everyone.
I am working on a Password Strength Meter and I am running into 1 problem that I would like to fix.
When pressing the "Clear Password & Try Again" button, the password clears...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |