Skip to Content
author's profile photo Former Member
Former Member

DI Decrypt Company.DbPassword

Hi to all,

has anybody an idea how to decrypt, or retrieve

decrypted SBO Company Password and DBPassword from

the DI Company Object



I neeed the DbPassword, to establish further

DataBaseConnection for actual SBO user.

But the DbPassword property returns '********'



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 17, 2004 at 04:03 PM

    Hi Thomas,

    There's no way to get a decrypted password.

    You should think about how to get logon information from a user in another way - or like SAP Business One request different logon information in case you want to offer SAP Business One functionality the logged on user has no authorization for...

    Thanks for understanding that,


    PS: In addition - if it would be possible to decrypt the password, I would not like anybody to post this information anywhere.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 29, 2004 at 08:11 AM


    The DI API Company object creates a “cookie” that consists of the current DI API session. This cookie is available for the UI API using the GetContextCookie method. We could also retrieve the connection context string from the UI API using the acquired cookie [Method (in UI API): GetConnectionContext(Cookie)]. Once we acquire the encrypted connection string, all that we need to do is to disconnect the current database and set he connection context information to the DI API using the SetSboLoginContext method. After doing this we could establish the connection to the new company database using the Connect method.

    Please find the UI API User Manual for more details regarding the same



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.