Consulting

Results 1 to 3 of 3

Thread: Encrypt password for database access

  1. #1

    Encrypt password for database access

    Good Morning,


    I have a spreadsheet that accesses a database, would have some way to encrypt the password or some way that the password can not be viewed?

    ==> Connection example

    Set gCon = New ADODB.Connection
    gCon.Open "provider=msdaora; data source=BDDados01; user id = John; password = ******x1234;"


    Thank you for your help

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Take a look in our knowledge base http://www.vbaexpress.com/kb/getarticle.php?kb_id=951
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  3. #3
    Good afternoon,

    I am new to VBA and I was wondering how I will use this function to encrypt the password.

    Thanks again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •