How to encrypt password in Forms10g while calling in batch mode

We are migrating our Forms 6i batch jobs to Forms10g. There are two ways we can pass login
information.
1. In formsweb.cfg
2. Pass in URL string 'userid=username/password@connectstring'
In both cases the password is not secured. In option # 1 password is in the configuration file in plain text. In
second option # 2, its in the URL.
BTW, we are using HTTPS protocol while calling form in batch mode and we are not using SSO.
Is there a way, we can use data source in frmservlet while calling form in batch mode. Like in Java, we can create data source with indirect password, the password is encrypted.
Basically, we would like to encrypt our password, we have very strict security guidelines.
Please let us know if there are any options, how to encrypt password in Forms 10g
Regards,
Gufran

One option maybe the following :
- Create a file holding the encrpyted username/password on the application server side (in the working directory of your oracle forms application)
- As a parameter, pass the name of your file to the form
- when the form is getting called, read the name file in (TEXT_IO) and use the logon built-in with the value from the password file
How to create an encrpyted file :
- use the obfuscation toolkit to encrypt username/password@instance into a varchar2
- write this value to a file using oracle forms (TEXT_IO)
FUNCTION f_encrypt_string(p_key IN VARCHAR2)
RETURN VARCHAR2 IS v_encrypt_string VARCHAR2(2000) := 'N/A';
l_data VARCHAR2(2000);
BEGIN
-- if neccessary create a text where the length of the string
-- is diviteable by 8 (which is a requirement of dbms_obfuscation_toolkit)
l_data := RPAD(p_key, (TRUNC(LENGTH(p_key)/8)+1)*8, CHR(0));
DBMS_OBFUSCATION_TOOLKIT.DESEncrypt(input_string => l_data,
key_string => 'MagicKey',
encrypted_string=> v_encrypt_string);
RETURN (v_encrypt_string);
END;
Edited by: user434854 on Apr 8, 2009 5:17 AM

Similar Messages

  • How to Reset Password of User while not connected to Domain using Local Admin Account

    How to Reset Password of User while not connected to the Domain using Local Admin Account
    (I have the use of a local admin account), and I want to help a user reset their password who has logged in the PC and had their credentials cached, but forgot this password. 
    In Local Admin Account :
    When I go to Control Panel, users, users, manager user ; I cannot see any users in this window except the local admin account, and, so I cannot reset a user password this way.
    When I go to lusrmgr.msc, then users ; the local admin account will display only. 
    If I go to command prompt and type "net user", this will not display any users who have logged in to the computer, and so I cannot use "net user" to reset a password.
    I don't want to use any disks, 3rd party programs, or create a VPN connection to the domain.  I just want to help a user who calls in and forgets their password.

    Hello Keith,
    I know this is an old thread but I'm trying to better understand how I could change the domain password while not on the network. What I'm getting from your post is that you:
    1. Create a local user account (not a domain user)
    2. Login with that local user account
    3. Connect to the VPN while logged in as a local user
    4. Log out of the local account and login with the domain credentials
    Now, my question is based on the assumption that the password created on the local account is the same password that one will use to login to the domain account? Also, is the local user account the same as the domain account?
    Thanking you in advance!

  • How to encrypte password using form 6i?

    Dear all,
    How to encrypte password using form 6i?
    Best Regards,
    Amy
    Edited by: amychan60 on Sep 29, 2008 8:23 PM

    DBMS_CRYPTO and DBMS_OBFUSCATION_TOOLKIT packages provide APIs for data encryption.
    Note: 102902.1 - Encrypting Data using the DBMS_OBFUSCATION_TOOLKIT package
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=102902.1
    Note: 197400.1 - Example Code Encrypting Credit Card Numbers
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=197400.1
    Developing Applications Using Data Encryption
    http://download.oracle.com/docs/cd/B19306_01/network.102/b14266/apdvncrp.htm

  • How to encrypt password with hash function in Java?

    Hello, everybody!
    I will need to store user passwords in a database, but for stronger security I want to store these passwords hashed, so I know I will need a column for the password and for the salt value.
    So, I'd like that you indicate me a very good article or tutorial (preferable from Sun) that shows me how to use Java to encrypt and decrypt passwords with hash. It doesn't necessarily need to deal with database. I can implement this part myself after seeing how Java manage encryption with hash functions.
    Thank you very much.
    Marcos

    I will tell you more precisely what I want to get better for you to help me.
    As I said I implemented in .NET what I need to implement in Java now. In my
    database I have a table with this structure (I omitted that columns that are not
    necessary to our discussion):
    CREATE TABLE EMPLOYEES
    ID NOT NULL PRIMARY KEY,
    PASSWORD VARCHAR(40), -- password encrypted
    HASH_SALT VARCHAR(10) -- salt value used to encrypt password
    So, in the table I have a column to store the password encrypted and a column to
    store the salt value.
    Below is a little utility class (in C#) that I use to generate the salt and
    the hashed password.
    public static class PasswordUtilities
        public static string GenerateSalt()
            RNGCryptoServiceProvider encoder = new RNGCryptoServiceProvider();
            byte[] buffer = new byte[5];
            encoder.GetBytes(buffer);
            return Convert.ToBase64String(buffer);
        public static string EncryptPassword(string password, string salt)
            string encryptedPassword =
                FormsAuthentication.HashPasswordForStoringInConfigFile(
                password + salt, "SHA1");
            return encryptedPassword;
    }As you can see, the class is fairly simple. It only has two methods: one to
    generate the salt value that will be used to encrypt the password and another
    one to encrypt the password. The method HashPasswordForStoringInConfigFile of
    the FormsAuthentication class is what really hash the password with the salt
    value. This class belongs to the .NET library, so we can't see its source code,
    but it doesn't matter for our discussion as I know that we can implement
    something similar in Java.
    Below is a little sample code showing the use of the utility class above to
    encrypt a password.
    public class Encrypt
        public static void Main(string args[])
            string password = "Secret";
            string salt = PasswordUtilities.GenerateSalt();
            string encryptedPassword = PasswordUtilities.EncryptPassword(password, salt);
            // now I store 'encryptedPassword' in the PASSWORD column and 'salt'
            // in the HASH_SALT column in the EMPLOYEES table.
    }To verify if a password is correct I can use the code below:
    public class VerifyPassword
        public static void Main(string args[])
            string password = GetPasswordFromUser();
            // Let's assume that employee is an instance that corresponds to a row
            // in the database and the properties HashSalt and Password correspond
            // to the HASH_SALT and PASSWORD columns respectively.
            Employee employee = GetEmployeeFromDatabase(1);
            string salt = employee.HashSalt;
            string encryptedPassword = PasswordUtilities.EncryptPassword(password, salt);
            bool passwordMatch = employee.Password.Equals(encryptedPassword);
            System.Console.WriteLine(passwordMatch);
    }The only thing that interest me in this discussion is the PasswordUtilities class.
    As you saw its code is in C#, using the .NET framework libraries.
    What I want is to have this same little class coded in Java, to generate the salt
    value and to encrypt the password passed in using salt value generated. If you could
    help me to do that with articles that have what I want or with code that already do
    that I would really appreciate.
    Thank you in advance.
    Marcos

  • How to prevent plant locking issue while calling a BAPI? Please help!

    Hi Experts,
       I have following scenario:
       BizTalk sends 4B2 PIP to XI via JMS adapter. XI then sends the same to ECC system via ABAP Proxy.
       4B2 PIP in our case contains one PO header and one line item.
       In ECC, ABAP proxy calls BAPI to process the GR (Goods Receipt).
       The problem is BizTalk can send many 4B2 PIPs simultaneously (Parallel). When The first PIP is getting processed in ECC the BAPI locks some plant data till it completes the GR. But if second PIP request comes when the first once is still getting processed then we get "plant is locked" error.
       How can we avoid this plant locking error? What is the best option to solve this?
      While calling BAPI in my ECC ABAP Proxy if I use qRFC as given by the code below then will it solve the problem?
      Will this use only one queue "QUEUE01" for all the 4B2 PIP requests?
      Will it create a new queue for every request?
      If we assume that there are 3 PIP requests already in a queue. If the GR processing for the first PIP returns some data error (not the locking error) in the BAPIRETURN then will the second PIP gets processed or will it wait till the first one is successfully processed?
       CALL FUNCTION 'TRFC_SET_QUEUE_NAME'
          IMPORTING
             QNAME = 'QUEUE01'.
      CALL FUNCTION '<CREATE GR BAPI>'
      IN BACKGROUND TASK
      EXPORTING
         TABLES ....
      COMMIT WORK.
    Thanks & Regards
    Gopal

    Man, you guys/gals are great! You notice everything...I sure appreciate all the help so far. I've updated a few things, but I still can't get x1 in the method to pass the right input to line 39. For instance, if I set a=2, b=4, and c=-30, then x1 should = 3 and x2 should =-5, but both keep showing -5. They are always equal for some reason, even when they are not supposed to be.
    I see what you were saying with d always equalling zero. I was looking in the main where it doesn't always = zero, but in the method it was always set to zero. Thanks...good eye!
    num1 = quad(a, b, c, 1);                              //line 39
    num2 = quad(a, b, c, 2);                              //line 40
    JOptionPane.showMessageDialog(null, "There are two real roots. They are root 1 = "+ num1 + " , and root 2 = " + num2 + ".");I also added this to the method so d won't always = zero
    d = (Math.pow(b,2) - (4 * a * c));I also have all of the variables declared at the top, but I forgot to copy and paste all of them and I updated the System.exit(0) to close the JOptionPane along with extra } 's to close the program correctly.
    Again, thanks a bunch.

  • How to pass PARAMETERS to FORMS while calling them through URL

    Hi,
    I am working on integrating EBS with OBIEE as per the doc id 552735.1(metalink2)
    In the Document, Oracle had given an example for genating the URL in OBIEE as follows,
    SELECT
    HEADER_ID,
    fnd_run_function.get_run_function_url(
    CAST(fnd_function.get_function_id('ISC_ORDINF_DETAILS_PMV') AS NUMBER),
    CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_APPL_ID) AS NUMBER),
    CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_ID) AS NUMBER),
    CAST( VALUEOF(NQ_SESSION.OLTP_EBS_SEC_GROUP_ID) AS NUMBER),
    'HeaderId='||HEADER_ID||'&pFunctionName=ISC_ORDINF_DETAILS_PMV&pMode=NO
    &pageFunctionName=ISC_ORDINF_DETAILS_PMV',
    NULL) as ORDER_HEADER_ACTION_LINK_URL
    FROM OE_ORDER_HEADERS_ALL
    But this one navigates to the JSP page of sales orders. Its working fine,
    h3. Problem :_
    If i want to navigate to Oracle forms(say Sales Orders),
    i'm able to navigate, by giving the 1st param as '5522'(Sales order Form ID(ONT_OEXOEORD)) and 5th parameter as NULL.
    The 5th parameter is used to navigate to a particular record.
    But i dono how to pass the parameters to this particular Sales Order Form..!
    (like here they hav passed HEADER_ID in a particular format)
    {I guess, this might not be understood totally with this given data here, but i don want to make this post too big.}
    CAN ANYONE PLEASE TELL ME, HOW TO KNOW THE FORMAT OF THE "PARAMETERS" TO PASS(WHILE GENERATING URL)_WHILE CALLING AN ORACLE FORM.._
    Thanks in Advance..!!

    Hi,
    In addition to the above...
    if i give the 5th parameter as, 'HEADER_ID=||'header_id { in runtime it'll be converted as 'HEADER_ID=5432..}
    I'm not getting any error, getting a fresh Sales order page..!! { The given Header ID is ignored }
    else if i give something like 'HEADER_ID=||'header_id||'&FunctionName=ONT_OEXOEORD...' { lets say }
    its throwing the following errors..
    FRM-47023: No such parameter named G_QUERY_FIND exists in form OEXOEORD.
    FRM-40105: Unable to resolve reference to item PARAMETER.G_QUERY_FIND
    FRM-47023: No such parameter named ORDER_NUMBER exists in form OEXOEORD.
    and then it shows up the Navigator.
    Requirement :_
    How to pass parameter to a form while calling them through URL.
    Thank you,

  • How to encrypt password columns

    I would like to create a table to store the username and password for all my application users. There are a problem with password encryption. When I create a table as follows,
    create table usrmas
    (username varchar2(10),
    passwd varchar2(20))
    All password from the passwd column will be disclosed when somebody query the table. It is not secure. Right?
    When I tried to use the table dba_users, for example, there are a user scott with password tiger, I am fail to find a record when I type a sql as follows,
    select *
    from dba_users
    where username = 'SCOTT'
    and password = 'TIGER'
    Please advice me how I can authenticate user. Thanks

    If you have a 10g database, it should be installed by default.
    Note, however, that Oracle stores hashed passwords, not encrypted passwords, in the dba_users table. That's more secure since there is no decrypt method for a hashed value. With a hashed value, you can only check whether the user has provided the right password, you can't find out what the right password is.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to encrypt password in serverstopper class??

    Hi,
    I have configured the weblogic server as windows service and currently using boot identity file for username/pw to startup. To enable graceful shutdown of the server, i am using serverstopper class. But to facilitate changing of pw, i am reading the password from a property file in which the password is stored in plain text format. Is there a way to encrypt the password and configure serverstopper class to use the encrypted password or the serverstopper class can use boot identity file to shutdown? When i tried the serverstopper class without username/pw, i am not able to shutdown the service and getting anonymous user can't shutdown the service. Thanks in advance for your reply.
    Thanks,
    Kuppusamy.V.,

    Hi Kuppuswamy,
    Here is the simple "WLST interpreter script", I didn't have time so tried to keep java code as simple as possible(didn't follow good coding practices :-( ). Before executing this java program you need to generate keys. Below is the procedure for that.
    Assumption :-
    BEA_HOME :- /usr/VASVijay/bea10mp1
    WL_HOME :- BEA_HOME/wlserver_10.0
    1) Go to WL_HOME/server/bin and set the environment by executing "setWLSEnv.sh".
    2) Then execute below command which generate "userconfig" and "userkey" files in the directory you had execute this command
    java weblogic.Admin -adminurl t3://adminserverl:port -username <adminusername> -password <adminpassword> -userconfigfile userconfig -userkeyfile userkey -STOREUSERCONFIG
    This command prompts for "Y" or "N", select "Y", then creates two files "userconfig" and "userkey"
    3) Validate above keys are correct, execute below command
    java weblogic.Admin -adminurl t3://adminserverl:port -userconfigfile userconfig -userkeyfile userkey -GETSTATE
    Above command should display "RUNNING".
    4) Compile below java code and execute. Change the server name(VASMS1) in "shutdown('VASMS1','Server') according to your server name.
    import java.util.*;
    import weblogic.management.scripting.utils.WLSTInterpreter;
    import org.python.util.InteractiveInterpreter;
    public class VASServerShutdown
    static InteractiveInterpreter interpreter = null;
    VASServerShutdown()
    interpreter = new WLSTInterpreter();
    private static void connect()
    StringBuffer buffer = new StringBuffer();
    buffer.append("connect(userConfigFile='/usr/VASVijay/VASDomains/VASNewDomain/userconfig',userKeyFile='/usr/VASVijay/VASDomains/VAS
    NewDomain/userkey',url='t3://localhost:8001') \n");
    buffer.append("print(cmo)");
    interpreter.exec(buffer.toString());
    public static void serverShutdown()
    StringBuffer buffer = new StringBuffer();
    buffer.append("shutdown('VASMS1','Server')");
    interpreter.exec(buffer.toString());
    public static void main(String args[])
    new VASServerShutdown();
    connect();
    serverShutdown();
    Let me know if you have any issues or you require something additional.
    Thanks.
    Vijay Bheemineni.
    Edited by: VAS Vijay Bheemineni on Nov 3, 2009 9:18 PM

  • How to encrypt Password while calling Portal URL from Abap

    Hi all,
    My requirement is to call portal from R/3 4.6C.  As part of it I'm calling Portal URL along with user id & Password by using the FM CALL_BROWSER. The problem here is User ID & Password are visible everyone in the URL.
    Is there any way that I can encrypt sothat it doesn't become a security issue?
    I really appreaciate for your help.
    Thanks
    Seshu

    can you please mention the abap code  by which you are sending the username and password to a portal via url.....
    are you able to log on to the portal...please share your code ......
    Edited by: Ashutosh Shukla on Apr 18, 2008 9:17 AM

  • How to Fill the selection screen while calling the transaction

    Hi All,
             my requirement is in one of the screen while i will press a push button it will call one transaction and it will fill the selection screen build order number field and skip the first screen i.e the selection screen it will show the output of that report directly.
    am using this code .
    case sy-ucomm.
    while 'FSLR'.
    set PARAMETER ID 'ANR' FIELD aufnr.
    RANGES s_aufnr FOR afko-aufnr.
          s_aufnr-sign   = 'I'.
          s_aufnr-option = 'EQ'.
          s_aufnr-low    = aufnr.
          APPEND s_aufnr.
    CALL TRANSACTION 'ZFS1' USING s_aufnr
         MODE 'E' .
        AND SKIP FIRST SCREEN.
    endcase.
    here the problem is i cant use both skip screen and using at a time nither the screen is filling nor its skipping the first screen.
    but its not working would any one please help how can i do this functionality?

    Hi
    Do in this way.
    DATA: rspar TYPE TABLE OF rsparams WITH HEADER LINE.
    rspar-selname = 'S_AUFNR'.
    rspar-kind = 'S'.
    rspar-sign = 'I'.
    rspar-option = 'EQ'.
    rspar-low = 'aufnr'.
    APPEND rspar.
    SUBMIT zfs1_prog  VIA SELECTION-SCREEN WITH SELECTION-TABLE rspar AND RETURN.
    If this doesnt suit yer requirement, I wud suggest you to use BDC as below.
    CALL TRANSACTION 'SE11' USING bdcdata
                           MODE   'E'
                           UPDATE 'A'.

  • How to encrypt password in Sun ONE directory server?

    Hi,
    I'm trying to perform an update to a password field in Sun ONE directory server using JNDI, but the stored password does not get encrypted by the directory server. I've searched the forum, and only found examples on how to do so for Active Directory. Please help.
    Thanks

    You didn't make mention of setting up ssl on the server side, so search these boards for openssl. Some nice person uploaded an nice example of how do use openssl to do this.
    To get the ssl certs for the solaris-client ssl authentication ( tls:simple ) to work you will need to use netscape to connect to the ssl port to get the right format. There are comments in that same doc on how to do that.

  • How create encrypted/password-protected zip file?

    Any idea if there's a way with the Java API to create an encrypted and password-protected ZIP file? I know how to create a zip file with Java, but I need encryption and password protection.

    Thanks for the link, but that's not a solution. It's 3 years old (and still not resolved) and I'm looking for a Java solution.

  • How to encrypt password using md5

    Hello all,
    I would like to generate a password and encrypt it using md5 with the current time(System's time) as the key, in Servlets.
    How do i go about doing this?
    Kindly guide.
    regards
    appu

    >
    I would like to generate a password and encrypt it
    using md5 MD5 is a non-reversible hashing, not an encryption!
    with the current time(System's time) as the
    key, If you use the current system time as the key for any encryption algorithm then how are you going to know what system time to use to decrypt?
    in Servlets.
    How do i go about doing this?Read up on encryption, the JCE and Servlets.

  • How to avoid printer name prompt while calling Smartform

    Hi All,
    I am calling smartform FM from my program. I am passing following settings in Output-Options and Control-Parameters:
    wa_outputoptions-tddest = 'LP01'.  "Printer name
    wa_outputoptions-tdnewid = 'X'.     "New request
    wa_controlpara-device = 'PRINTER'.   "Device
    wa_controlpara-no_dialog = 'X'.          "No dialog
    Even after these settings I am getting prompt which asks printer name and other details.
    Please tell me how I can avoid the prompt which asks printer name and other settings such as new spool request and print immediately.
    Thanks in Advance.
    Regards,
    Vijay

    Hi Vijay,
    Try like this.
    CALL FUNCTION fm_name
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
    <b>   control_parameters         = wa_controlpara</b>
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       <b>output_options             = wa_outputoptions
       user_settings              = space</b>
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = tab_otf_data
      JOB_OUTPUT_OPTIONS         =
      TABLES
        it_tab                     = itab[]
    EXCEPTIONS
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       OTHERS                     = 5
    Regards,
    SP.

  • How to encrypt password

    hi,
    i have a problem on how to hide the password.
    everytime i type the password in the customize key entry on the selection screen for me to customize the table ZTFDIR  and if i will open the table ZAUTHORITY it is where i insert the password and the user id. if will click the content of that table... the user id and the password will appear... so there is a possibility that some of the user will know the password i created for that selection screen.... how can i hide that password on the ZAUTHORITY TABLE???
    I NEED IT ASAP...
    BRYAN

    Hi Bryan,
    You can create your own screen (not a generated selection screen) and set the attributes for that field to display asterixes only (Program tab, *entry checkfield).
    Hope this helps,
    Bert

Maybe you are looking for

  • Specific mac addresses?

    I have an Airport Extreme base station in an upstairs closet ( with printers, dsl, security system, fire, panel, etc) and I use a couple of Airport Express to bounce the signal around downstairs. The two expresses have solid connections to the base -

  • TS2446 My apple ID was disabled. inspite of changing my password i am not able to down load any app as the message which come is apple ID disable Kindly advise

    My apple ID was disabled. I changed my apple password and tried to log on app store with new password but the message on the screen of my iphone comes APPLE ID disable. Kindly help............

  • Searching data in a group defined

    Hi, I have difined a table group (containing some tables in my DB) and a file group (a folder containing some text file in my machine) and added them in my data source group, but I can not search the data in this source group on the Oracle intranet s

  • SLOW VIEW AND DUPLACITE IN SOM RECORDS

    Good evening Iam created this view but make Doublicate or more for many records what is the problem: CREATE OR REPLACE FORCE VIEW XXX_SINGLE_DATA NAMEARFIRST, NAMEARSECOND, NAMEARTHIRD, NAMEARFAMILY, NAMEENFIRST, NAMEENSECOND, NAMEENTHIRD, NAMEENFAMI

  • About Dialog Design

    Hi All I am student of MCA.I want to know how can i develop a About Dialog.About Dialog means..A dialog have a one picture and multiple label.As we see all software have a help menu and help menu have a About Dialog.As like that i want to develop.Can