Using key file as key to hash

We're trying to authenticate to a webservice, but the
provider uses a system that we are not familiar with. They sent us
our credentials, but one piece was a .key file that we are supposed
to use as our key to sha-1 hash our xml content. I'm familiar with
Amazon and Google in hashing content, however, we always had the
key in a string that was easily usable in cf_hmac. This key file is
not a string that can just be populated and I'm trying to figure
out how to use it.
Thanks.
J

> There is a way to generate this file using SHA1 using a Key as parameter?
Why don't you simple search the forum with "SHA1" term, you'd get the answer in an instant
> How can I decrypt this file to test?
> There is others ways to encrypt a file via SAP ERP? UTF-8 and BASE32 are not encrypt codes. They are encoding code.
What encryption do you need?
> But I would like to know if are these methods algorithms as DES, AES, RSA... or others ?
Couldn't you say it at the beginning!
By simply looking at CL_HARD_WIRED_ENCRYPTOR methods, we see that the encryption mechanism is very simple (I'm not expert so I can't tell what it is), I wouldn't rely on it...
I recommend you to read [Note 662340 - SSF Encryption Using the SAPCryptolib|http://service.sap.com/sap/support/notes/662340]. There are also some documentation, security guides on sap library and sap marketplace.
Edited by: Sandra Rossi on Jul 13, 2010 6:51 PM

Similar Messages

  • Passing Parameters using key mapping in web envirnment

    if I use the url for passing parameters directly to report as
    http://appserver/dev60cgi/rwcgi60?report=inv.rep+server=server=repserver+userid=scott/tiger@db+param1=1+param2=2+DESTYPE etc;
    it works fine but Now the problem is I m using key mapping to hide username and password for this the url is
    http://appserver/dev60cgi/rwcgi60?mapkey+report=inv.rep+server=repserver+param1=1+param2=2;
    where mapkey is defined in CGIcmd.dat file as
    mapkey := scott/tiger@db
    I have checked by rearranging the order of paramerters but still get error.
    Oracle Reports Server CGI - Reports Server name is not specified.
    but I m mentioning the server name as server=repserver
    Hope to get it soon
    Thnx in advance

    You key defined in the cgicmd.dat file should be:
    mapkey := userid=scott/tiger@db *
    You need parameter name 'userid=' before scott, and need space character and '*' in the line. Without '*', cgi won't take any more parameter from the URL after the key, so '+report=inv.rep+server=repserver+param1=1+param2=2' is ignored if there is no '*' for mapkey.

  • Problems with animations using key frames and other bugs

    To me, the current version of Acrobat 3D Toolkit (7.0.7) seems like a beta version -- unfortunately I payed the full price. Or maybe there are a few settings only set wrong on my system and someone can tell me how to correct this ...
    ++ Animations using key frames
    According to the manual page 86:
    <-----
    6. Ensure the time/frame line is positioned at frame 0, right-click over the time/frame line in the timeline, and then click Insert Key.
    ---->
    I cannot get this context menu option (see http://www.vornweg.de/acrobat3d/no-insert-key-option.gif )
    ++ Empty and hence almost useless Animations Options dialog
    The Animation Options dialog does not list any Sequence entries -- although there are sequences available, see http://www.vornweg.de/acrobat3d/empty-animation-options-dialog.gif.
    ++ Mixed up icon bars
    Moving icon bars around can result in a complete mix-up of unusable icons, see http://www.vornweg.de/acrobat3d/mixed-up-menus.gif
    ++ Functionless Object Position toolbar
    The object position cannot be set using the Object Position toolbar, the OK icon is deactivated all the time although the tick icon is darker green, i.e. supposedly active (see http://www.vornweg.de/acrobat3d/position-panel.gif
    ++ Missing things
    Why is there no properties panel visible all the time, displaying the properties of the selected object and allowing to change properties (e.g. positions, angles etc.)?
    Why is it impossible to view different trees at the same time (e.g. scene tree and animation tree)?
    Why is it impossible to have different models open simultaneously? (E.g. to compare settings or even to copy properties/objects from one model to the other.)
    Why is it impossible to create new folders in the scene tree? Imported folders are available, but for the scene management within Acrobat 3D I may have different requirements than the CAD designer had. (Also, I would like to put new objects in folders of my own.)
    Why is tabbing not supported more extensively? E.g. All the different trees (Folders, Scene Tree, ...) could all be put into a single tabbed panel saving valuable space on my screen but still giving easy access to all items.
    Why is there no Undo for camera position changes?
    Why is there no Undo for material edits (e.g. applying a new material to an object)?
    Why is it only possible to animate object movements, not the making visible/invisible of objects and changes of the camera position?
    Why is it impossible to save object selections? Within a larger model it always is a lot of clicking to get the view required for certain actions.
    Why are there a lot of different Display options available on-screen but when a scene is rendered into a file, Acrobat 3D uses the same display option all the time (i.e. Solid)?
    Probably this list could be extended quite heavily. And some of these missing things may be time intensive to realize (and saved for future versions), others are comparably basics now-a-days.

    I agree with the "beta" feel of the 3D Toolkit. I have been very frustrated getting animation to work well. Specifically, I made an animation that plays in Toolkit, imports and plays into Acrobat 3D, but does not play in Reader. It displays 3D and rotates, etc., but I cannot get the animaiton to play.
    The contextural menu issue you see I see also. The menu appears, but without the "add Key Frame" item. I find that if I select an object, move it a bit, move it back, then the menu will appear. (at least sometimes I think) Pretty frustrating.

  • Problem using Key expansion

    i try to use key expansion in a scenario from F.B1.2007 to a B1 database to retrieve fields from Sales Order .
    The DocNum of the Sales Order is in the xml file .
    i add the following lines in BIUMETA.F.B1.2007_B1.2007.xml
    <KeyExpansionRule Side="R">
    <TargetObjectType ObjectNameSpace="" ObjectTypeId="B1.2007_SO" RequestGenerationRuleLink="">
    <ObjectKeyList>
    <ObjectKey FieldName="DocNum" SelectionPath="//BOM/BO/Documents/row/DocNum" />
    </ObjectKeyList>
    </TargetObjectType>
    </KeyExpansionRule>
    but this doesn't create a "RA" section in the B1i message .
    Do i have to modify another file ? ( according to "Integration Dev. guide" , if it's a standard api call , we don't need to create a xsl file for RequestGenerationRuleLink)
    thanks
    Edited by: Laurent VIALARET on Jun 30, 2009 4:42 PM

    it was a case problem . "side" instead of "Side" works fine

  • I am trying to copy and paste a work document into my online class. POP up states that Cut, Copy, and Paste are disabled by my Modzilla broser and that I could use key board short cuts or visit the website.

    '''bold text'''Want to copy & paste word doc onto my online class discussion post. Unable to. I either need directions on how to use key board short cuts. I have visited the Modzilla web site like it also stated but am unable to find an answer to this.

    See:
    *http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
    *https://addons.mozilla.org/firefox/addon/allowclipboard-helper/

  • Combine two reports in query designer using key figure with sap exit

    Hi experts,
    i want to combine two reports in query designer using key figure with sap exit
    in the report 1 key figure calculation based on the open on key date(0P_DATE_OPEN)
    to calculate due and not due in two columns
    in report 2 key figure calculate in the time zones using given in variable Grid Width (0DPM_BV0) like due in 1 to 30 days, 31 to 60 days...the due amount based on the open on key date(0P_DATE_OPEN)
    to calculate in 1-30, 31-60, 61-90, 91-120, 121-150 and >150 days in 6 columns
    now i have requirement like this
    not due, 1-30, 31-60, >60, due,1-30, 31-60, >60 in 8 columns
    or
    not due, due, 1-30, 31-60, 61-90, 91-120, 121-150 and >150 in 8 col
    thank you

    Hi Dirk,
    you perhaps know my requirement,
    for the management to make used in one report,
    we have in reporting finacials Ehp3.
    Vendor Due Date Analysis - which show due, not due
    Vendor Overdue Analysis - show only due and analysis in time grid frame
    i want to combine in one report that show NOT DUE, DUE, DUE time frames in grid.
    krish...

  • Using key position to lock navigation when you scroll to bottom on tablet page starts to zoom.

    Using key position to lock navigation in place after scrolling, this portion works but when you scroll to the bottom the page starts to zoom. I have narrowed it down to the key positioning by eliminating everything else on a fresh page. Sam Friedman [Adobe Muse] - any thoughts on this?

    Hi - sorry for the delayed response, I've been on vacation. Do you have a published example you could show me?

  • Is using key events really that hard?

    I am trying to implement a keyListener for my application, and it seems
    way harder than it should be. My application is simple: A JFrame
    with one button and one JPanel upon which I draw. When I click
    in the JPanel and type, I want things to happen.
    After much looking, it seems I have to not only implement KeyListener,
    but also MouseListener, so when the mouse enters I can call
    requestFocusInWindow().
    That seems to work sometimes, but not when I leave and come back,
    and not always when the application first appears.
    So do I also have to implement FocusListener?
    Why is this so hard to do? MouseListener is very easy to implement,
    but KeyListener seems to be a huge pain in the butt.
    Can someone point me to a simple tutorial or example that just
    has a few swing elements, and processes key events?
    I feel like with Java I often try enough things until it finally works,
    and never really understand why, and what it was that fixed it.
    The documentation and API does not fully describe everything one
    needs to know to use the API "properly". Am I the only one frustrated
    by this? I have programmed in Java/Swing for years, and JUST LAST
    WEEK discovered that when implementing paint in swing, one should
    override paintComponent and not paint. But then why does overriding
    paint usually work? There are too many quirks in Java that let you
    get away with doing things wrong, and then suddenly, your application
    is broken. It wouldn't be so bad if the API was more clear on some of
    these suble issues.
    Thanks,
    Chuck.

    How to Use Key Bindings

  • Why use key-partitioning and key-associator features?

    Why use key-partitioning and key-associator features?
    What kind of applications are suitable for using key-associator and key-partitioning features?
    Could you give me some example?
    Thank you

    So the typical way is to use KeyAssociation. This is a single interface that uses a method
    public Object getAssociatedKey();
    I believe this works on the ClusterService level (rather than say the Cache). So, say you have a Client and an Account cache where a Client can have multiple Accounts. Now both the Client and the Account object will implement KeyAssociation and return the client object as the AssociatedKey. This will cause these associated objects to live on the same partition.
    Now you can do some clever tricks since you know these are on the same partition. These include using the BackingMap and EntryProcessors / InvocationService / Aggregators to return all the AccountIds associated with a client account (essentially a join).
    Unfortunately, these are pretty advanced Coherence features so it is worth building them in a testcase first and getting them to work before you integrate them into your application.
    Best, Andrew.
    PS. You could also use the KeyPartitioningStrategy, but I prefer the KeyAssociation (as do most people).

  • Error using keyed archiving on iPhone

    Hi
    I am trying to archive an object using keyed archiving. I have managed to successfully create the archive, but attempts to load it results in the following error:
    'NSInvalidArgumentException', reason: '* -[NSKeyedUnarchiver initForReadingWithData:]: incomprehensible archive (0xffffffce, 0xfffffffa, 0xffffffed, 0xfffffffe, 0x7, 0x0, 0x0, 0x0)'
    The code:
    path = [[NSBundle mainBundle] bundlePath];
    finalPath = [path stringByAppendingPathComponent:@"DataStore"];
    - (void)saveArchive {
    NSMutableData *data;
    NSKeyedArchiver *archiver;
    BOOL result;
    data = [NSMutableData data];
    archiver = [[NSKeyedArchiver alloc] initForWritingWithMutableData:data];
    [archiver encodeObject:myDataStore forKey:@"DataStore"];
    [archiver finishEncoding];
    result = [data writeToFile:finalPath atomically:YES];
    [archiver release];
    - (void)loadArchive {
    NSData *data;
    NSKeyedUnarchiver *unarchiver;
    data = [NSData dataWithContentsOfFile:finalPath];
    unarchiver = [[NSKeyedUnarchiver alloc] initForReadingWithData:data];
    myDataStore = [unarchiver decodeObjectForKey:@"DataStore"];
    [unarchiver finishDecoding];
    [unarchiver release];
    Any help would be appreciated please

    Solved. Can only write to documents or temp directory on iPhone

  • To create Dynamic Selection screen using Key Fields

    Hi All,
    We have a requirement where we want to create Dynamic selection screen using Key fileds of Z-table or any standard table.
    Please provide some solution if you have worked in this area.
    Thanks in Advance,
    Anand Raj Kuruba

    Hi,
    You can use the following statement.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE <node>.
    declares a node <node> of a logical database for dynamic selections in the selection include.
    To use the dynamic selections in the SELECT statements of the subroutine PUT_<node>, you must use the data object DYN_SEL. The data object DYN_SEL is automatically generated in the logical database program as follows:
    TYPE-POOLS RSDS.
    DATA DYN_SEL TYPE RSDS_TYPE.
    You do not have to program these lines yourself. The data object DYN_SEL is available in the database program but not in a connected executable program.
    The type RSDS_TYPE of the data object is defined in the type group RSDS as follows:
    TYPE-POOL RSDS.
    WHERE-clauses ------------------------------
    TYPES: RSDS_WHERE_TAB LIKE RSDSWHERE OCCURS 5.
    TYPES: BEGIN OF RSDS_WHERE,
    TABLENAME LIKE RSDSTABS-PRIM_TAB,
    WHERE_TAB TYPE RSDS_WHERE_TAB,
    END OF RSDS_WHERE.
    TYPES: RSDS_TWHERE TYPE RSDS_WHERE OCCURS 5.
    Expressions Polish notation ---------------
    TYPES: RSDS_EXPR_TAB LIKE RSDSEXPR OCCURS 10.
    TYPES: BEGIN OF RSDS_EXPR,
    TABLENAME LIKE RSDSTABS-PRIM_TAB,
    EXPR_TAB TYPE RSDS_EXPR_TAB,
    END OF RSDS_EXPR.
    TYPES: RSDS_TEXPR TYPE RSDS_EXPR OCCURS 10.
    Selections as RANGES-tables -----------------
    TYPES: RSDS_SELOPT_T LIKE RSDSSELOPT OCCURS 10.
    TYPES: BEGIN OF RSDS_FRANGE,
    FIELDNAME LIKE RSDSTABS-PRIM_FNAME,
    SELOPT_T TYPE RSDS_SELOPT_T,
    END OF RSDS_FRANGE.
    TYPES: RSDS_FRANGE_T TYPE RSDS_FRANGE OCCURS 10.
    TYPES: BEGIN OF RSDS_RANGE,
    TABLENAME LIKE RSDSTABS-PRIM_TAB,
    FRANGE_T TYPE RSDS_FRANGE_T,
    END OF RSDS_RANGE.
    TYPES: RSDS_TRANGE TYPE RSDS_RANGE OCCURS 10.
    Definition of RSDS_TYPE
    TYPES: BEGIN OF RSDS_TYPE,
    CLAUSES TYPE RSDS_TWHERE,
    TEXPR TYPE RSDS_TEXPR,
    TRANGE TYPE RSDS_TRANGE,
    END OF RSDS_TYPE.
    For more information, please check this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/67/93b80914a911d2953c0000e8353423/content.htm
    Regards,
    Ferry Lianto

  • Focus problem using key event

    Hi!
    There is an application I've created uses key event that needs your help.
    As you know, that setting 'Mnemonic' to a JButton object makes the button accessible by a key mentioned in the parameter as the following ->
                   OkButton.setMnemonic(KeyEvent.VK_O);Now, pressing 'Alt' and 'O' keys together will do the same action as the 'OKButton' does.
    But as of me, I think pressing two keys together is not a complete handy job.
    So, is there any code that will do the same, by pressing only the 'O' key ?
    Ok! I know that there is something to be taken care of; that is, if I want the button to react by pressing only the 'O' key the button must be in focus [value returned by the method [code]isFocusable() for the button must return true.]
    Then how the 'Mnemonic' works ?!! When 'Mnemonic' do something, button does not have any focus.
    Only, I press the Alt+O and the work done successfully! No need to take care wherever the focus is. So, is there any way to do alike, where I don't have to manage the focus subsystem?? I would only press the 'O' key and the task will be done.
    Please send a sample code. Thanks!

    I suggest you look into Key Bindings:
    "How to Use Key Bindings"
    http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html
    Here is a short demo program that uses Key Bindings to do what you describe:
    import java.awt.event.ActionEvent;
    import java.awt.event.KeyEvent;
    import javax.swing.*;
    public class PressOTest extends JFrame {
        public PressOTest() {
            super("Press O or C");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            // Action that will be associated with the OK button and with
            // the 'O' key event
            Action okAction = new AbstractAction("Ok") {
                public void actionPerformed(ActionEvent e) {
                    JOptionPane.showMessageDialog(PressOTest.this, "Ok!");
            // Action that will be associated with the Cancel button and with
            // the 'C' key event
            Action cancelAction = new AbstractAction("Cancel") {
                public void actionPerformed(ActionEvent e) {
                    JOptionPane.showMessageDialog(PressOTest.this, "Cancel!");
            // Register Key Bindings for the 'O' and 'C' keys:
            InputMap im = getRootPane().getInputMap(
                    JComponent.WHEN_IN_FOCUSED_WINDOW);
            ActionMap am = getRootPane().getActionMap();
            im.put(KeyStroke.getKeyStroke( KeyEvent.VK_O, 0 ), "ok");
            am.put( "ok", okAction );
            im.put(KeyStroke.getKeyStroke( KeyEvent.VK_C, 0 ), "cancel");
            am.put( "cancel", cancelAction );
            // Create and add OK & Cancel buttons:
            JButton okButton = new JButton(okAction);
            JButton cancelButton = new JButton(cancelAction);
            Box box = Box.createHorizontalBox();
            box.add( Box.createHorizontalGlue() );
            box.add( okButton );
            box.add( Box.createHorizontalStrut(10) );
            box.add( cancelButton );
            box.add( Box.createHorizontalGlue() );
            getContentPane().add( box );
            setSize(300, 300);
            setLocationRelativeTo(null);
        public static void main(String[] args) {
            new PressOTest().setVisible(true);
    }

  • Scrolling of dinamani site in firefox using key board not properly configured?

    scrolling of dinamani site in firefox using key board not properly configured?
    by using down arrow i am unable to scroll
    instead it goes to end of page
    previously ie. about 4-5 months back this problem was not there

    You may have switched on caret browsing.
    * http://kb.mozillazine.org/accessibility.browsewithcaret
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    * http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Hlep in deleting Componantes using Key event listeners.

    Hi All,
    I am tring to write a GUI program. I am dragging componets from the left side of the panel to the right side of the panel. Everything works well as of now. But i am tring to delete the componets which i placed on the right side of the paenl using key stroke events. Can anyone tell how this can be done. I have like labels and textfield componeets.
    Please help
    Smitha

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.Border;
    public class KeyDeletion extends JPanel {
        JComponent selectedComponent;
        public KeyDeletion(JFrame f) {
            setLayout(null);
            Dimension d = new Dimension(65,25);
            for(int j = 0; j < 4; j++) {
                JLabel label = new JLabel("label " + (j+1),
                                           JLabel.CENTER);
                label.setBorder(BorderFactory.createEtchedBorder());
                int x = 20 + j*(d.width + 25);
                int y = 20 + j*(d.height + 75);
                label.setBounds(x, y, d.width, d.height);
                add(label);
            addMouseListener(ma);
            registerKey(f);
        /** Press the "x" key to delete selected label. */
        private void registerKey(JFrame f) {
            JRootPane jrp = f.getRootPane();
            int c = JComponent.WHEN_IN_FOCUSED_WINDOW;
            jrp.getInputMap(c).put(KeyStroke.getKeyStroke("X"), "DELETE");
            jrp.getActionMap().put("DELETE", deleteAction);
        public static void main(String[] args) {
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            KeyDeletion panel = new KeyDeletion(f);
            f.add(panel);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
        private MouseAdapter ma = new MouseAdapter() {
            Border etched = BorderFactory.createEtchedBorder();
            Border select = BorderFactory.createLineBorder(Color.red);
            JComponent lastSelection;
            public void mousePressed(MouseEvent e) {
                Point p = e.getPoint();
                Component[] c = getComponents();
                boolean haveSelection = false;
                for(int j = 0; j < c.length; j++) {
                    Rectangle r = c[j].getBounds();
                    if(r.contains(p)) {
                        setSelection(c[j]);
                        haveSelection = true;
                        break;
                if(!haveSelection && selectedComponent != null) {
                    setSelection(null);
            private void setSelection(Component c) {
                selectedComponent = (JComponent)c;
                if(c != null)
                    selectedComponent.setBorder(select);
                if(lastSelection != null)
                    lastSelection.setBorder(etched);
                lastSelection = selectedComponent;
        private Action deleteAction = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                if(selectedComponent != null) {
                    remove(selectedComponent);
                    selectedComponent = null;
                    repaint();
    }

  • HT3529 how i use key board

    How i use key board specially  typing of upper case letter

    Press the shift key (looks like an up arrow).  Then press the letter you wish to type in upper case.

  • I am not getting any sound on my iPad while using key board or in any games

    I am not getting any sound while using key board , in games have tried all the option as suggested by other members like rotation / mute switch setting , resetting the iPad etc . Any other way to solve this issue

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

Maybe you are looking for