Handling digest output

Please consider the following code. It seems to work fine. However, the output clearly includes unusual characters such as squares and characters from printed languages other than English (I recognized some as being used in German - many others I have never seen before).
Am I correct in assuming that the output from function digest is just binary data that is not often printable using only alpha-numeric characters? If not, how would I modify the code I am showing in order to have the complete digest shown on the form as a string consisting only of alpha-numeric characters?
I want to store the result in one database, containing user ID information, and in a second as a user ID for records containing potentially sensitive data. Is the result of function digest always unique given unique input data, or will I need extra code to make the values I store in the database unique? The objective for using the output from a digest is to make it more difficult to relate the data in one database to a specific person. I want only my own programs to easily make such a connection (and all of this code resides on the server, within servlets).
The databases I am using include PostgreSQL and MySQL. When the application is deployed, they will be configured to accept connections only from specific non-routable IP addresses. But, I am assuming that even if I do al the usual things to harden my site, I still ought to do things like this within an application so that if my administrative security measures fail, that failure does not automatically mean the data is easily accessable/usable.
What can I do to ensure that the result of my digest does not create problems for the RDBMS I am using, and that I can use it as intended?
    private void ProceedMouseClicked(java.awt.event.MouseEvent evt) {
        MessageDigest md=null;
        try {
            md = MessageDigest.getInstance("SHA");
        } catch (java.security.NoSuchAlgorithmException nsae) {
            OutputText.setText("OOPS");
        if (md == null) {
            OutputText.setText("OOPS2");
            return;
        byte[] data = InputText.getText().getBytes();
        md.update(data);
        byte[] result = md.digest();
        String rv = new String(result);
        OutputText.setText(rv);
    }Thanks,
Ted

hi,
this is to inform you that,
there is an issue with SPACE in function module:
WFMC_MESSAGES_PROCESS
process original output
        if pi_be_quiet eq space.
          MESSAGE S108.
        endif.
      WHEN C_PROCESS_REPEAT.
please sit with your ABAPER and try to debugg it on it.
update the forum
regards,
balajia

Similar Messages

  • Email app that handles digests well?

    I do volunteer technical support on several software and hardware products that send email digests (a standard feature of internet email).  The installed app doesn't handle them at all well.  Webmail is better, but also not great.  Does anyone know of an Android app that handles digests well?

    GeorgeBynum wrote:
    I do volunteer technical support on several software and hardware products that send email digests (a standard feature of internet email).  The installed app doesn't handle them at all well.  Webmail is better, but also not great.  Does anyone know of an Android app that handles digests well?
    The Gmail app works fairly well if you are using a gmail address. It will navigate the digest using links in the email
    K9 formats the emails pretty good but the links don't work for navigating the digest. 

  • Handling unit output type

    Dear Team,
    requires inputs for the following points,
    1. can we able to find the GLaccount in Sales Document
    2. Please clarify what is Handling Units Output type, which all the scnario it can be used,
    Thanks and Best Regards,
    Muralidharan S

    Hi..
    1. Not possible..still In SO top menu Envornment- Analysis- A/c determination you can see the a/c det.procedure
    2. in NACE selce V6-HU and you can use 0001-output type..in VL74 u can check the prinputs
    Reg,
    JJ

  • Handling unit output and packaging

    Hi All,
      How to configure packaging and how to see the output of this?
    How to see the handling unit output?
    My Client's Business scenario is:
    The finished product to be packed in pallets, pallets to be packed in container and container in truck.
    4 qts of finished product to be packed in 1 pallet, 2 pallets to be packed in 1 container and 1 container to be packed in truck. How to configure this?
    And also my client wants to see the packing list output and also the handling unit output.
    So how to to configure this.
    Please guide me.
    Reward points for helpful answer.
    Regards
    Ashis

    Hi,
    Sometime back Allabaqsh Patil has forwarded me this material for my question on packaging. I did it and it worked well.
    You can follow the same procedure and do it. It will work for you. The details are given below.
    hi,
    before creating the packaging material you have to go to:
    IMG-Logistics Execution-Shipping -Packing.
    1. Define packaging material types- it can be anything like boxes crates, etc. in this you have to maintain the output determination procedure, output type, plant determination, packaging material category, generate delivery items, number assignment. you can copy from standard also.
    2. Then go to define material group for packaging materials - here you maintain the four digit code and the description. Actually, this group is nothing but similar products which require similar packing products. For Ex. Nokia Phones all types they are basically packed first into a polythene bag. So here nokia phones can become a material group for packaging materials and polythene bag can become the packaging material type which can include different sizes and types of polythene bags.
    3. Define Allowed Packaging Materials - Here you assign the shipping group for packaging materials to the packaging material type. This is related to your mterial master data of the packaging material which you create.
    4. Now go to MM01 to create a packaging material. use material type as Packaging material then inside the system will take the item category group as VERP. Then in the Basic Data1 screen you have the material group for packaging material (MGPM). Slect the proper one. Now in the Sales:General/ Plant screen you have to maintain data regarding the packaging. you select the MGPM same as the basic data 1 screen, then select the packaging material type, the allowed pkh weight, allowed pkg volume. This is important because if the weight of your finished item is 2 KG and in the allowed pkg weight you enter only 1.5 KG, then while you carry out the packing process in delivery, the system will give you error," packaging weight exceeded." The assignment in the IMG creen for Define allowed packaging materials should be same as u mention in the material master. Then save your material master for packaging material.
    5. VA01 create the order, save it.
    6. VL01N enter shipping point, go to edit - pack- you will face a screen with 2 parts. In the top part you select your packaging material in which you want to pack your finished item, enter the system will assign a number to that material. Now select the Material in the top part and the finished one in the lower part and click on the Icon Pack. Here one thing has to be taken care of. Suppose if you want to pack only one finished item in one packaging material, then in the lower part of the screen you have a field for partial quantity here you chnge it to 1. system will prompt quantity changed. now you select the material in the top part and the one in the lower part and click on the PER PART. QTY ICON. In this way the system will pack only one finished item in a single packaging material. Packing is done go back, select the picking and do the PGI. save the delivery and create the invoice.
    HANDLING UNITS.
    Basically handling units come into picture when you want to carry out multi level packing. suppose you want to pack Nokia phone first into a polythene bag, then this polythene bag is again packed in to box. like that. then this box will become a handling unit. For this go to :
    IMG - Logistics General - Handling Unit Mangement - Basics.
    1. In basics you do the same thing as you did in the packing in logistics execution. like you create the packaging material type, then MGPm and their assignment.
    2. Then go to External Identification - and maintain the number ranges forthe handling units that you want and assign the same to your pckaging material type.
    3. Now that you have done everything, create the order, save it, in VL01N, enter shipping point, go to edit - pack - do the same thing as i ahve told you in the step no. 6 (above). now after doing select the PACK HUs TAB . NOW IN THIS SCREEN IN THE TOP PART YOU WILL SEE THE ALREADY PACKED MATERIAL. In that same part again select your next packaging material that is BOX. enter the system will assign the number to the BOX.
    4. Now select the material which you have just entered and the materials which were already packed in the lower part of the screen and click on the ICON PACK.
    This is what I know about the packing process and the handling unit. you have many things in the handling unit management whichcan be very useful for automatic packing.
    HOPE I AHVE ANSWERED YOUR QUERY.
    PLEASE REWARD VALUABLE POINTS IF SOLUTION FOUND USEFUL.

  • Handling Multiple Output Parameters

    Howdy.
    What is the concensus approach for handling multiple output parameters in Java?
    We have a legacy C API that we are porting to Java. All API routines already return an error value as an int. i.e.:
    int foo(...);
    What if we wanted to return additional info, such as a length and binary (not text) data?
    int foo(...,int* len,char** data);
    We use a char** for data cause we don't know in advance how long the data will be and we don't want callers to have to allocate arbitrary-sized arrays. In other words, we allocate the output data buffer internally.
    How do you do this in Java? Obviously, we can use an Integer object to return the length, but passing in a byte[] for data will not return the internally allocated array to the caller:
    public int foo(...,Integer len,byte[] data); // can't allocate data internally
    We also thought about using ByteArrayOutputStream, but since the class does not provide direct access to the internal array, it requires an inefficient copy through the toByteArray() method in order to retrieve our data.
    Any ideas?
    Ricardo

    Yes, that is the approach that we are currently
    using. We have defined an Out class that incorporates
    all possible output types as data members:Huh? One class that is used for all possible output types? I'm not quite sure what you mean by that. Classes should be meaningful in and of themselves, not just to encapsulate a bunch of unrelated fields. Sounds non-OO.
    public class Out
    byte[] out_bytes;
    int      out_int;
    }I guess we feel this is somewhat inelegant...
    The only real problem is with the byte[] arguments.
    Any thoughts on that?
    Thanks,
    RicardoThere's nothing inherently wrong with a byte array - else there may not be such an animal in the language. Other than the comments above about maybe it being non-OO, the only other comment I could make on this without really seeing the whole context (how this class is really used, etc) would be that yes it looks like it is just encapsulating all possible output types. Not good. If a method is going to return a byte array, it should do so - not return a meaningless "Out" object which happens to contain that array. And another method returning an int should return the int, not this "Out" object containing the int. These don't appear to be related fields belonging to an object in an OO sense.

  • Handling unit output determination questions

    I have configured a new output type for a custom label we need to implement for handling units.   It is assigned as V6, for Ship-to Party/Shipping Material.
    In VL01N or VL02N, I am able to create the handling units and pack the delivery line item materials into them.
    I am able to manually assign the output type to the handling unit in VL01N/VL02N, but have not been successful in getting the output type to auto populate.  I have verified that it is not populated after packing the HU and saving from VL01N, or when doing from VL02N, or after PGI.
    I have been searching the forums and have not found the answers I need.
    1.  Is it possible for the output type to automatically populate for a handling unit?  If so, at what point should this happen?  I would think based on how our custom label output types for delivery documents behave, it would assign after save from either VL01N or VL02N.
    2.  When I create the HU, I specify a VERP packaging material number that represents the carton in order to create the HU.  I do not have the material on the sales order or delivery as a line-item, and I am not getting any error messages indicating that it should be. 
    If this should work the way we expect it to, any suggestions on what I have overlooked that would prevent my output type from automatically assigning?
    Thanks in advance for your help.
    Dave

    Hi Joan,
    Thank you for your answers.  They were most helpful.  I was finally able to get the new Output Type to assign after I created the HU's and saved the delivery.
    Hopefully you won't mind if I ask some related questions.
    1.  If I went to VL02N for a delivery where I had already created the handling unit, it did not automatically get the Output Type assigned when I saved.  (Like it does for our delivery based labels when I add a user in NACE that previously wasn't identified to get the label.)   Is this the normal behavior for HU-based output or am I still missing something in my setup?
    2. I did the VHAR step and specified both the Output Determination Procedure and the Output Type of my new label,as suggested.   This did work once I finally tested by creating a new HU for a delivery, rather than checking an existing delivery/HU.  Is entering the Output Type here critical?  If another customer has a different label format, I think assigning the Output Type here this will cause a problem for us.  (I haven't had a chance to change the config to remove this and see if the Output assigns based on references elsewhere, now that I know it seems to assign only when the HU is initially created.)
    Thanks again!
    Dave

  • Handling Units Output

    Hello,
    How can i change output determination for handling unit according to packaging material type??
    i want to cancel the immediate print for sticker/
    Thanks

    Hi,
    just check which output determination procedure has been assigned. after that go to the procedure and change the time function, as in your case it has been set up "Immediate"
    Regards,
    Abhishek

  • Handling unit output

    Hi All,
      Hope you all are doing well.
    I have a small query.
    I did all the configuration of packing..Packing is coming automatically during delivery..
    But my query is how to see and configure the handlimg unit output.
    Kindly sugeest me and send some screen sorts or step by step configuration of this..
    Points will be rewarded for a helpful answer.

    Hi Ashis,
               Please go throuh this path and do the configuration Spro --> IMG -->Logistics execution -->Shipping --> Basic Shipping functions --> output control > output Deteminetion> Maintain Output detemination for Handling units.
    I hope it will solve your issue,
    Regards,
    Murali.

  • Where should handling unit output determination procedure be assigned ?

    Hi
    In logistic execution, where should handling unit out put determination procedure be assigned pls ?
    Thanks In Advance

    A custom output type must be created with the form you would like to print and condition records for HU's must be maintained in VV61.
    You can also use NACE to define the procedures and access sequence.
    Hope that helps
    thanks

  • PP CS5 - handling and output of h264 (DSLR) files?

    Hi all, new to PP (Mac OS 10.6.8, MacPro 1,1, 10 gig ram, RAID5 eSATA).  Starting to work with my copy of CS5, beginning the evaluation process to migrate from FCP7.
    I have a couple of questions about using DSLR native h264 files directly in the timeline.
    I've got a sequence, about 1 hour in length, of all the camera original files strung together.  While I'm reviewing, watching, etc., I notice a little progress bar in the lower right corner that keeps telling me PP is "conforming MVI_xxxx".  What is it doing?  As a bit of explanation, you may or may not know that h264s are verboten in FCP7, and I generally transcode them to ProRes for edit.  One of my attractions for switching to PP is that I'm attracted to using h264 natively, but wonder if it's truly an efficient way to edit?
    Secondly...I have the finished stringout sequence, and now I want to output it to a file so my client can review the raw footage.  My initial test last night sucked...it took a bit over 8 hours to export a rather large (2.4 gig, 872x540 - though I'd set MediaEncoder to export a 960x540 field) h264 movie...which seems like maybe it was re-encoding my h264 files?
    In the FCP world, I would have:
    a) transcoded the h264 to ProRes (or whatever I was editing in) previous to edit;
    b) created my stringout sequence;
    c) exported a reference movie (quick, easy);
    d) encoded using Squeeze, Flip-4-Mac or Compressor
    So how do I do these steps, or something approximating them, in PP CS5?

    Yes that is fine. Premiere needs to conform certain files in order to give proper playback.
    Best not to start editing before conforming is done.
    One on the reasons I can think of its taking so long is you changed the resolution on export, it has to scale the footage (assuming the original is HD)
    And CS5 is a relative old version of Premiere it only supports Nvidia videocard to enable CUDA even with the hack,.

  • Handling of Output Tax in Payroll

    Hi,
    I have a scenario where a deduction from an employee payroll is subjected to input tax.
    Is there any config in standard payroll where it can split the total amount into (1) output tax amt and (2) revenue amt?
    If this is not in the standard, what is the usual practice for this?  Must I code in my schema to generate two wagetype records for the splitting?
    Regards.
    Augustine

    Tushar,
    Read below link, if it helps you:
    Merge Dimensions and extended merge in Webi
    Sahil

  • Output determination analysis for Handling Unit

    Hi Friends,
    Can any body help me on how to check the output determination analysis for  Handling unit outputs.
    I tried checking the document flow through delivery of the Handling unit but could not check.
    thank you for your help in advance.

    Hi,
    Try in t-code VL74 - Output from HU...
    enter ur selection parameters like Output Type,Transmission Medium,Sort order and Processing mode
    once you execute select the entries and click on Log (shift+F6) icon...
    Reg,
    JJ

  • Saving SQL+ output to a text file

    I have to use SQL+ on one of my databases. No way around it. So I will write my queries, run them, check the output, tweak them and run again as necessary. So I might start with
    SELECT
    ename,
    job
    FROM
    emp;Once I know it is working correctly, I wrap it in a procedure so I can get the data in a text file:
    SET TRIM ON
    SET PAGESIZE 2000
    SET SERVEROUTPUT ON SIZE unlimited
    EXEC DBMS_OUTPUT.ENABLE(null)
    SPOOL c:\mySQL\out.txt
    BEGIN
    DECLARE
    CURSOR c_cur IS
    SELECT
    ename,
    job
    FROM
    emp;
    BEGIN
    DBMS_OUTPUT.PUT_LINE(
    'NAME|JOB|'
    FOR r_cur IN c_cur LOOP
    DBMS_OUTPUT.PUT_LINE(
    r_cur.ename||'|'||
    r_cur.job
    END LOOP;
    END;
    END;
    /Then I import this into Excel as delimited data on the pipe |
    which works great until I decide that I actually do need one more column. Then I have make changes to the SQL, and two more changes in the output portion (one for the heading, and one for the LOOP)
    I was wondering if anyone had written a cool procedure that I could run ANY SQL through, and it would automatically know my column names write the headings and then loop through the data automatically.
    I'm not tied to using the exact procedure I described above. The key is, I am looking for a general procedure that I can run any script through, and it will handle the output for me, without additional modification.

    MrGibbage wrote:
    I have to use SQL+ on one of my databases. No way around it. So I will write my queries, run them, check the output, tweak them and run again as necessary. So I might start with
    SELECT
    ename,
    job
    FROM
    emp;Once I know it is working correctly, I wrap it in a procedure so I can get the data in a text file:
    SET TRIM ON
    SET PAGESIZE 2000
    SET SERVEROUTPUT ON SIZE unlimited
    EXEC DBMS_OUTPUT.ENABLE(null)
    SPOOL c:\mySQL\out.txt
    BEGIN
    DECLARE
    CURSOR c_cur IS
    SELECT
    ename,
    job
    FROM
    emp;
    BEGIN
    DBMS_OUTPUT.PUT_LINE(
    'NAME|JOB|'
    FOR r_cur IN c_cur LOOP
    DBMS_OUTPUT.PUT_LINE(
    r_cur.ename||'|'||
    r_cur.job
    END LOOP;
    END;
    END;
    /Then I import this into Excel as delimited data on the pipe |
    which works great until I decide that I actually do need one more column. Then I have make changes to the SQL, and two more changes in the output portion (one for the heading, and one for the LOOP)
    I was wondering if anyone had written a cool procedure that I could run ANY SQL through, and it would automatically know my column names write the headings and then loop through the data automatically.
    I'm not tied to using the exact procedure I described above. The key is, I am looking for a general procedure that I can run any script through, and it will handle the output for me, without additional modification.Why are you bothering with the PL/sql procedure at all? Why not just
    SET TRIM ON
    SET PAGESIZE 2000
    SPOOL c:\mySQL\out.txt
    SELECT
    ename,
    job
    FROM
    emp;
    spool off

  • How to handle user-defined character in java??

    Dear all,
    i am new to internalization and localization.
    i am now porting an application from vb.net to java.
    the vb.net version can handle (input/output [to file, screen, database] ...etc) user defined character (charset is big5 + extra characters) transparantly.
    what i need to do is update the file EUDC.tte in windows (which seems have native charset codepoint to unicode codepoint info) ..
    could anybody tell me how can i achieve the same thing in java??
    thank you.
    lsp

    pslkwan wrote:
    Hi DrClap,
    it seems i need to write CharsetProvider, charsetdecoder, charsetencoder...etc...
    do you have example / sample for me to follow???? I googled for "java charsetprovider example" and got one as the first hit.
    btw, is it possible to replace the default big5 charset implementation with my own one so that the existing code can take advantage of the my own charset classes???You don't want to replace the default, just specify which one to use when needed. Pretty much any operation that involves charsets lets you specify which one to use. If your current code relies on the default, then you should change that.

  • Java: how to handle user-defined character (UDC)??

    Dear all,
    i am new to internalization and localization.
    i am now porting an application from vb.net to java.
    the vb.net version can handle (input/output [to file, screen, database] ...etc) user defined character (charset is big5 + extra characters) transparantly.
    what i need to do is update the file EUDC.tte in windows (which seems have native charset codepoint to unicode codepoint info) ..
    how can i achieve the same thing in java??
    thank you.
    lsp

    pslkwan wrote:
    Hi DrClap,
    it seems i need to write CharsetProvider, charsetdecoder, charsetencoder...etc...
    do you have example / sample for me to follow???? I googled for "java charsetprovider example" and got one as the first hit.
    btw, is it possible to replace the default big5 charset implementation with my own one so that the existing code can take advantage of the my own charset classes???You don't want to replace the default, just specify which one to use when needed. Pretty much any operation that involves charsets lets you specify which one to use. If your current code relies on the default, then you should change that.

Maybe you are looking for