How to Derive a key with RFC 2898 PKCS#5

Hi,
I use Sun JCE as the cryptography provider. I would like to know what are the class and method to use to derive a key defined by RFC 2898 based on PKCS#5 standard.
Thank you,
Bick

I would like to use the PBKDF2 function to derive a key from its master key, what should i put when getting the SecretKeyFactory? Should I be using "PBEWithMD5AndTripleDES"?
PBEKeySpec pbeKeySpec = new PBEKeySpec(pwd.toCharArray()), salt, count);
SecretKeyFactory skf = SecretKeyFactory.getInstance("PBEWithMD5AndTripleDES");
Key key = skf.generateSecret(pbeKeySpec);

Similar Messages

  • How to use Control Key with other key as Ctrl+C

    I am using this code to access Shift key + C
    addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent KEv)
    if(KEv.isShiftDown() && (KEv.getKeyCode() == KEv.VK_C))
    //Shift + C key down
    Please tell me how to do with Control Key?
    Vishwajeet

    addKeyListener(new KeyAdapter()
    public void keyPressed(KeyEvent KEv)
    if(KEv.isControlDown && (KEv.getKeyCode() == KEv.VK_C))
    //Cntrl + C key down
    //if u want to create a key stroke for keys with contrl combination use CTRL_MASK.

  • T500 How to switch FN key with left CTRL key

    HP notebook has a function that can switch the fn key with ctrl key in bios setting
    Is there any similar function in thinkpad notebook?

    xxneos wrote:
    HP notebook has a function that can switch the fn key with ctrl key in bios setting
    Is there any similar function in thinkpad notebook?
    Welcome to the forum!
    No, there's no method to swap the functions of the Fn and Ctrl keys.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Jane
    2015 X1 Carbon, ThinkPad Slate, T410s, X301, X200 Tablet, T60p, HP TouchPad, iPad Air 2, iPhone 5S, IdeaTab A2107A, Yoga Tablet, Yoga 3 Pro
    I am not a Lenovo Employee.
    I AM one of those crazy ThinkPad zealots!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!

  • How to unlock ssh keys with lxde

    I'm running a minimal setup with lxde.  What manages ssh keys under lxde?  I want to have my user's key unlocked when logged in so I can ssh and scp at will.
    Thanks!

    I have faced the same issue (with a WM like fluxbox/openbox, not LXDE).. There is no specific program that manages ssh keys in LXDE.
    From my research, there are 3 possible solutions -
    1) You can start the gnome-keyring (or is that seahorse) in LXDE (or any WM). This can manage your ssh keys
    2) You can generate a new ssh key with empty passphrase.. That way, you will not be asked for passphrase everytime.. This is what I use.. Very simple to configure and use.. Note: The private key will be stored unencrypted on the disk if the passphrase is empty. It may be a security concern
    3) Use "ssh-agent" and "ssh-add" command to remember the passphrase after you type it once..
    You can use the snippet below:
    $ eval `ssh-agent`
    $ ssh-add [optional ssh private file if not ~/.ssh/id_rsa]
    <enter passphrase>
    More detailed configuration here - http://www.mtu.net/~engstrom/ssh-agent.php
    Once you have done a ssh-add, the next time you can just start ssh-agent in the background. You can spawn an ssh-agent process when starting your X session.

  • How to merge source data with RFC response and post back again as Idoc

    Hi All,
    This is the requirement we have for an interface
    The legacy application is sending Vendor master to PI 7.0
    If it is new vendor then it is send as an Cremas Idoc into SAP. Legacy (New Vendor) -
    > PI 7.0  -
    >Cremas Idoc SAP
    If it is changed Vendor legacy will only send changed fields for that Vendor.In PI we would like to call an RFC which will return all the data for that changed Vendor Number and then merge the RFC response with changed data from legacy and then send it to SAP as Cremas Idoc again with all values.
    I know these can be achieved using Proxy by custom Abap Code in SAP.But we would like to avoid it.
    How can we achieve it?
    1.RFC lookup - Shall we use these , when PI receives changed Vendor from legacy ,it will call RFC using RFC lookup and the response message from RFC lookup should be merged with source data .Is this possible?
    2.Shall we achieve this using BPM ?Is it feasible and How?
    Any Help greatly appreciated
    Thanks,
    V

    If it is changed Vendor legacy will only send changed fields for that Vendor.In PI we would like to call an RFC which will return all the data for that changed Vendor Number and then merge the RFC response with changed data from legacy and then send it to SAP as Cremas Idoc again with all values.
    I am not sure why you want to pull whole data from R3 and send back to R3.
    you can follow any of these approach..
    if you have any indicator for new/ changed cusotmer in the legacy data then trigger CREMAS IDoc accordingly.
    mapping rules will be diffrent for New and changed CREMAS idoc.
    otherwise just do RFC look up for each record then based on the output(new/changed) create or update cusotmer data through CREMAS IDoc.
    when changing the customer through CREMAS no need to pass whole data again. it is enough if pass the changed fields. offcourse qualifier values  for segments will differ.

  • How to press 2 keys with "keyPress" event" at the same time?

    Hi~~
    I 'm now developing a Java Application that need to press 2 key(keyEvent) at the same time, but it seem not to work after trying.
    So, I wonder how to make it work?
    Thank~~

    You can use a "modifier" (Control, Alt, Shift) key in combination with a regular key, but you can't combine regular keys unless you add some custom logic.
    Basically in the keyPressed event you need to store the previous key that was pressed and add some comparison logic to see if the two keys you are monitoring where pressed back to back.

  • How to use tab key with JTextArea to shift focus

    Hi
    My problem is simple as whenevr i use tab key in my JTextArea, instaed of shifting focus to next component, it adds a tab space to my text.
    How do i shift focus out of my JTextArea.
    Ashish

    you can also redefine the textarea's TAB Key behaviour. The tutorial has a good example for that - better than i would be able to describe :-)
    look at http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html

  • The network key you have entered is invalid please enter a network key with 5 or 13 characters

    Hi guys im REALLY sorry im sure this has has been answered befor but i have limited access to the inet currently so im trying to get the answer ASAP.
    the only post i found about this mensions the router bios upgrade but i doubt thats the issue here.  this is on my computer i simply cant enter the password in it says it has to be 5 or 13 characters long and i do not know.seee how to get past this issue... it works on my computers that have "Wireless network monitoy v4.5" but i cant seem to get it working on my new vista laptop but i also had the wrong length error on my XP system when i didnt have the wireless netowrk monitor installed.
    long story short my password is 128bit is 7 characters long. so what in the world do i do =( WEP by the way

    You confuse the passphrase with the keys. Your passphrase may be seven characters long but your keys are not. The passphrase is used to generate the keys which you can see in the fields key 1-4. Those keys are the keys which you have to enter into your computer. The passphrase won't work often because it is not standardized how to derive the keys from the passphrase. Thus enter key 1 into the computer and make sure you have selected key 1 as transfer key if your router has the option.
    The key in the router is in hexadecimals. The computer should easily recognize the format. The key is 5 or 13 bytes long. In hexadecimals each byte has two digits thus your key is either 10 or 26 hexadecimals long. With 128bit keys it is the latter.
    I would recommend to use WPA or WPA2 with pre-shared key instead. WEP can be cracked within minutes. WPA is considered secured. Plus there is only the passphrase. For WPA/WPA2 the way how to derive the actual key from the passphrase is standardized. Thus there is nothing to confuse...

  • How to Use "Hot Key" in the Search help

    Hi,
    Please explain how to use hot key with some example.

    TYPE-POOLS SLIS. DATA: BEGIN OF itab OCCURS 0,
            BUKRS LIKE T001-BUKRS,
            BUTXT LIKE T001-BUTXT,
          END   OF itab.
    PARAMETERS: P_BUKRS TYPE BUKRS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_BUKRS. 
    PERFORM F4_FOR_BUKRS.
    FORM F4_FOR_BUKRS.   DATA: IT_FIELDCAT TYPE  SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
            ES_SELFIELD TYPE  SLIS_SELFIELD. * Get data
      SELECT BUKRS
             BUTXT
             FROM T001
             INTO TABLE itab
             up to 10 rows .
    Get field
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                I_PROGRAM_NAME     = SY-REPID
                I_INTERNAL_TABNAME = 'ITAB'
           CHANGING
                CT_FIELDCAT        = IT_FIELDCAT[].   LOOP AT IT_FIELDCAT.
        IT_FIELDCAT-KEY = SPACE.
        IF IT_FIELDCAT-FIELDNAME = 'BUTXT'.
          IT_FIELDCAT-EMPHASIZE  = 'C710'.
          IT_FIELDCAT-HOTSPOT = X.
        ENDIF.
        IF IT_FIELDCAT-FIELDNAME = 'BUKRS'.
          IT_FIELDCAT-EMPHASIZE  = 'C610'.
        ENDIF.     MODIFY IT_FIELDCAT.
      ENDLOOP.   CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
    I_TITLE                       = 'THIS IS FOR F4 IN COLOR'
          I_TABNAME                     = 'ITAB'
          IT_FIELDCAT                   = IT_FIELDCAT[]
        IMPORTING
          ES_SELFIELD                   = ES_SELFIELD
        TABLES
          T_OUTTAB                      = ITAB . ENDFORM.                    " F4_FOR_BUKRS

  • Had Photoshop Elements 12 on my other Mac that recently got smashed, new one has no CD drive. How do I install Elements with my product key? Purchasing an external CD drive is not an option at this time after forking over the 2500 for the new Mac...

    Had Photoshop Elements 12 on my other Mac that recently got smashed, new one has no CD drive. How do I install Elements with my product key? Purchasing an external CD drive is not an option at this time after forking over the 2500 for the new Mac...

    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.6| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Primary Key With Four Column ,How to use that Column As Primary Key In Form

    Dear All,
    i have create composite Key as primary Key With Four Column .
    How can i use these column in Form With Report Page.
    How can i use these four Column as primary Key to Edit Record .
    How can i do this.
    Thanks
    Vedant

    wrap a view around your table with this bogus primary key. Use an instead of trigger to handle the inserts and updates. And then look at using surrogate keys to resolve these bad design issues...
    5 out of 4 people don't understand fractions.
    Thank you,
    Tony Miller
    Webster, TX

  • How to change 'z' key into 'A' key with key blinding?

    How to change 'z' key into 'A' key?
    Although txt.setText("A") can set the text field with 'a', but it is not original input from keyboard because it cant trigger the key listener.
    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Main
    {   public static void main(String[] args)
        {   JFrame f = new JFrame("Test");
            Test GUI = new Test();
            GUI.setOpaque(true);
            f.setContentPane(GUI);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setVisible(true);
    class Test extends JPanel
    {   JTextArea txta = new JTextArea(10,20);
        JTextField txt = new JTextField(10);
        JScrollPane sp_txta = new JScrollPane(txta);
        public Test()
        {   this.setPreferredSize(new Dimension(400,300));
            setLayout(new BorderLayout());
            txta.setEditable(false);
            add(sp_txta, BorderLayout.CENTER);
            add(txt, BorderLayout.PAGE_END);
            Action testAction = new AbstractAction()
            {   public void actionPerformed(ActionEvent ae){ txt.setText("A"); }
            txt.getInputMap().put(KeyStroke.getKeyStroke('z'), "test");    //Change z into A
            txt.getActionMap().put("test", testAction);
            txt.addKeyListener
            (   new KeyListener()
                {   public void keyPressed(KeyEvent e){ txta.append(e.getKeyChar() + " key is pressed \n"); }
                    public void keyReleased(KeyEvent e){ txta.append(e.getKeyChar() + " key is released \n"); }
                    public void keyTyped(KeyEvent e){ txta.append(e.getKeyChar() + " key is typed \n"); }
    }Edited by: 835972 on Feb 11, 2011 8:11 AM

    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.With r.keyPress method, it only can perform single key pressed at a time. Do you have any idea how to perform multiple key pressed at a time?The javadoc for Robot.keyPress suggests ( "+The key should be released using the keyRelease method+" ) that the key remains "pressed" until you keyRelease(...) it. So, press the keys sequentially:
    theRobot.keyPress(KeyEvent.VK_Q);
    theRobot.keyPress(KeyEvent.VK_W);
    // At this stage both Q and W are pressed "in same time"
    ... // do stuff
    theRobot.keyRelease(KeyEvent.VK_W);
    // At this stage, only Q is pressedI suspect that in real life, unless you're a very gifted musician, you don't really press keys "at the same time" (under the time resolution of a keyboard, which I imagine is around a few milliseconds).

  • How do I get keyboard from white keys with black letters to black keys with white letters. This OS7 keyboard is very annoying to type with

    how do I get keyboard from white keys with black letters to black keys with white letters. This OS7 keyboard is very annoying to type with

    Go to System Preferences > Universal Access > Seeing tab > Turn voiceover off.
    Captfred

  • Dear Customer Service Team,  I bought a twelve-month Dreamweaver CC program with monthly payment that I have paid via bank transfer and there would be a question about the activation. How could I get the license key with which I can activate my account? I

    Dear Customer Service Team,
    I bought a twelve-month Dreamweaver CC program with monthly payment that I have paid via bank transfer and there would be a question about the activation. How could I get the license key with which I can activate my account? I can not find it and now I only have access to the trial version.
    Thank you for your help in advance.
    Kind Regards,
    G. Zsolt

    There is no serial number require for Creative Cloud products, you may activate the products using your email address and password which is associated with Adobe. If your Dreamweaver asking for serial number, then make sure you are signing in with correct email address.
    You may also refer below link
    Sign in, activation, or connection errors | CS5.5 and later

  • How was created the cluster with keys in example: Sim Phone.vi

    Hello all
    I have LV 7.1.1
    I have found the example: Sim Phone.vi
    And I don't know how was created the cluster with keys?
    Best regards
    Iskander

    It's just like any other cluster you create. Put a cluster container on the front panel and insert some Booleans. the actual Booleans are on the classic controls palette. The border of the cluster is also colored transparent with the paintbrush on the Tools palette.

Maybe you are looking for

  • Where is the photo for a card stored?

    Good Evening: Does anyone know where the pictures used for contacts in Address Book are stored? Once a picture is added to a contact, is that image added to a file somewhere or is it referenced from another location? I am trying to find an original t

  • Sorting large amounts of data with treemap

    Hello. Im doing a project where I have to sort a large amount of data. The data is formed by a unique number and a location (a string). Something like this NUMBER .... CITY 1000123 BOSTON 1045333 HOUSTON 5234222 PARIS 2343345 PARIS 6234332 SEATTLE I

  • Image Processor Errors (Message #1344) - CS2 & 3

    Just started having this issue. Basically the machine tells me: SORRY, I could not process the following file: (file location/file name). I have searched the forums and found nothing which would help. As of last Thursday (3/12/09) the processor worke

  • Raising Non PO invoices in iSupplier portal

    Hi, Our system is presently running on 11.5.10.2. There is a requirement to implement iSupplier portal so that suppliers can raise both PO matched invoices and Non PO invoices. However, i gather we cannot raise non PO invoices in this version, rather

  • E71 and Out of Memory Error

    If I go to Preferences, my E71 announces "Out of memory, try closing some applications", even if I don´t have anything open. Preferences hangs completely, I can get out with Home-button, but the Preferences remain active, and you can´t kill it. When