Can you give me some suggestions for encryption decryption

ok i've written my own encryption decryption techniqu can you suggest me some better methods
Attachments:
EncrypDecrypt2.vi ‏59 KB

karthik9 wrote:
Not to publish ... this is very simple ... i just want to know should i improve this or scrap this
You haven't replied but I guess I haven't answered your question either...
Sure it works but from a LV programming standpoint it is very redundant and Rube Goldberg like.
IMHO you should scrap what you have or at least clean it up.
I am a long ways from being a LV expert but there are the things that pop right out at me when I see your code.
You use identical code in three places, make it a sub-vi.
Why start with a constant of -1 and increment it once inside your for-loop? This value will always be 0. 
Don't use array size to set the number of iterations of your for-loop then use the iteration counter to index an array inside the loop, use auto indexing. 
Your block diagram is sloppy and hard to follow.

Similar Messages

  • Can you give me some suggestions

    My purpose is to design file monitor tool
    Now I can get the hash value for every file and put the filename and hash value into MS access database.
    If the content of file modifyed, the hash value have been changed. So I can know whether the file have been modified by md5 value.
    Considering security, whether I should encrypt the hash value

    THANKS silk.m
    yes, it's running locally to prevent local users from
    modying files.
    Can you descibe the system-wide hooks ,etc more
    detailly. Well, on windows you can redirect calls to certain API's. Say, for opening a file.
    If me (joe hacker) wants to modify filea.txt I can write a hook that looks for a call to open this file, and instead of giving you that file back, you will get backup-filea.txtSo to you, these files will be the same (cause I just copied it and renamed it), but I have silently modified the real file and am doing naughty things with it :)
    Basically - you need to lockdown the computer, and really try hard to prevent users from installing things on it.
    Also, you should definately first determine who your attacker is (i.e: threat model) because if it's just the secretary of the company there is less risk (though still some risk).
    Good luck.

  • Can you give me some reasons about why I need to buy an iPod touch 5.Although I have the iPhone ,iPod nano, iPad ,MacBook pro,I think the iPod touch 5 is so attractive that I can't help buying it at once.If I have it,what I can do with it,can you tell me?

    can you give me some reasons about why I need to buy an iPod touch 5.Although I have the iPhone ,iPod nano, iPad ,MacBook pro,I think the iPod touch 5 is so attractive that I can't help buying it at once.If I have it,what I can do with it,can you tell me?

    All I can say is that I REALLY like my Touch 4th gen because I have all sorts of capabilities in a small form: e-mail, web browsing, news, weather, books, magazines, etc. etc.  Plus lots and lots of apps out there, including so many free ones.  I use the Cloud a lot so it's great to have everything sync'd to my MacBookPro (e-mail, Evernote, Pocket, etc.)
    It would be easier, though, to do some of this, especially magazines, on the iPad mini, but, again, I love the small size of the Touch. 
    As for the 5th gen instead of the 4th, the fifth has Siri and the 3D feature in maps, which are great.  And I'm sure it's a lot faster in iOS 6 than the 4th gen.  And cool colors! 
    Don't know if this helps . . .

  • Can anyone give me some documents for data cluster

    Hi,
    can anyone give me some documents for data cluster?
    ths!
    regards!

    Hi ,
    The following is a documentation on the <b>Data Cluster</b>:
    <b>Data clusters</b> are specific to ABAP. Although it is possible to read a cluster database using SQL statements, only ABAP can interpret the structure of the data cluster.
    You can store <b>data clusters</b> in special databases in the ABAP Dictionary. These are called ABAP cluster databases, and have a prescribed structure:
    <u><b>Cluster Databases</b></u> ( I have explained the cluster databse below )
    This method allows you to store complex data objects with deep structures in a single step, without having to adjust them to conform to the flat structure of a relational database. Your data objects are then available systemwide to every user. To read these objects from the database successfully, you must know their data types.
    You can use cluster databases to store the results of analyses of data from the relational database. For example, if you want to create a list of your customers with the highest revenue, or an address list from the personnel data of all of your branches, you can write ABAP programs to generate the list and store it as a data cluster. To update the <b>data cluster</b>, you can schedule the program to run periodically as a background job. You can then write other programs that read from the data cluster and work with the results. This method can considerable reduce the response time of your system, since it means that you do not have to access the distributed data in the relational database tables each time you want to look at your list.
    <b>Cluster Database :</b>
                    Cluster databases are special relational databases in the ABAP Dictionary that you can use to store data clusters. Their line structure is divided into a standard section, containing several fields, and one large field for the <b>data cluster.</b>
    <b>Creating a Directory of a Data Cluster</b>
    To create a directory of a data cluster from an ABAP cluster database, use the following statement:
    Syntax
    <b>IMPORT DIRECTORY INTO <dirtab>
                     FROM DATABASE <dbtab>(<ar>)
                     [CLIENT <cli>] ID <key>.</b>
    This creates a directory of the data objects belonging to a data cluster in the database <dbtab> in the internal table <dirtab>. You must declare <dbtab> using a TABLES statement.
    To save a <b>data cluster</b> in a database, use the <b>EXPORT TO DATABASE</b> statement .
    For <ar>, enter the two-character area ID for the cluster in the database. The name <key> identifies the data in the database. Its maximum length depends on the length of the name field in <dbtab>. The CLIENT <cli> option allows you to disable the automatic client handling of a client-specific cluster database, and specify the client yourself. The addition must always come directly after the name of the database.
    The IMPORT statement also reads the contents of the user fields from the database table.
    If the system is able to create a directory, SY-SUBRC is set to 0, otherwise to 4.
    The <b>internal table</b> <dirtab> must have the ABAP Dictionary structure CDIR.
    <b>******** Sample Program illustrating the data cluster .</b>
    PROGRAM Zdata_cluster.
    TABLES INDX.
    ******to save data objects in cluster databases
    DATA: BEGIN OF ITAB OCCURS 100,
            COL1 TYPE I,
            COL2 TYPE I,
          END OF ITAB.
    DO 3000 TIMES.
      ITAB-COL1 = SY-INDEX.
      ITAB-COL2 = SY-INDEX ** 2.
      APPEND ITAB.
    ENDDO.
    INDX-AEDAT = SY-DATUM.
    INDX-USERA = SY-UNAME.
    INDX-PGMID = SY-REPID.
    EXPORT ITAB TO DATABASE INDX(HK) ID 'Table'.
    WRITE: '    SRTF2',
         AT 20 'AEDAT',
         AT 35 'USERA',
         AT 50 'PGMID'.
    ULINE.
    SELECT * FROM INDX WHERE RELID = 'HK'
                       AND   SRTFD = 'Table'.
      WRITE: / INDX-SRTF2 UNDER 'SRTF2',
               INDX-AEDAT UNDER 'AEDAT',
               INDX-USERA UNDER 'USERA',
               INDX-PGMID UNDER 'PGMID'.
    ENDSELECT.
    ****To create a directory of a data cluster from an ABAP ****cluster database
    DATA DIRTAB LIKE CDIR OCCURS 10 WITH HEADER LINE.
    IMPORT DIRECTORY INTO DIRTAB FROM DATABASE
                                      INDX(HK) ID 'Table'.
    IF SY-SUBRC = 0.
      WRITE: / 'AEDAT:', INDX-AEDAT,
             / 'USERA:', INDX-USERA,
             / 'PGMID:', INDX-PGMID.
      WRITE  / 'Directory:'.
      LOOP AT DIRTAB.
        WRITE: / DIRTAB-NAME,  DIRTAB-OTYPE, DIRTAB-FTYPE,
                 DIRTAB-TFILL, DIRTAB-FLENG.
      ENDLOOP.
    ELSE.
      WRITE 'Not found'.
    ENDIF.
    *******run this program and see the result.
    Hope this documentation will give you an idea of data cluster.
    if useful, do reward with the points.
    Regards,
    Kunal.

  • Can you give me some code ?

    Can you give me some code ?
    (my email address is [email protected])

    Please be specific in your request.
    Try my SQL PlusPlus
    It generates variety of SQL, PL/SQL and SQLPlus code
    have a nice day,
    regards,
    M. Armaghan Saqib
    * SQL PlusPlus: Add power to SQL Plus command line
    * SQL Link for XL: Integrate XL with Oracle
    * Oracle Developer Tutorial with Sample GL
    Download free: http://www.geocities.com/armaghan/
    --------------------------------------------

  • Hsawwan ,can you give me some help?

    Although I'm very new, I have made up my mind to become a Oracle ACE in Ebs field.
    I will achieve this aim by working hard .
    I have made every mental preparations.
    can you give me some advice ?

    Hi,
    Have a look at the following thread, it should be helpful in answering your questions.
    ACE
    ACE
    Regards,
    Hussein

  • (268625273) Q WSI-29 Can you give any performance benchmarks for WLS web services?

    Q<WSI-29> Can you give any performance benchmarks for WLS web services?
    A<WSI-29>: It is very difficult to quantify performance aspects of web services
    since they depend on so many variables including but not limited to: backend system
    processing by stateless session beans and message driven beans, size of XML SOAP
    message sent, system hardware (CPU speed, parallel processing, RAM speed) and
    system software (JVM type and version of WebLogic server). However, let me point
    out that the EJB backend processing of requests both have the best possible scalability
    within the EJB2.0 specification (both stateless session and message driven beans
    can be pooled) and servlets have a proven scalable track record. Thus it should
    be possible to scale your web service deployment to meet demand. The overhead
    in processing XML within the servlet can be significant depending on the size
    of XML data (either as a parameter or a return type). While WLS6.1 does not have
    any features to address this performance concern, WLS7.0 will feature Serializer
    and Deserializer classes which can be dedicated to the XML to Java and Java to
    XML translation (they can also be automatically be generated from a DTD, XML Schema
    or regular JavaBean).
    It is true that web services are not the fastest way to process client requests
    but BEA is committed to making WebLogic server the fastest possible service provider.
    Adam

    see http://www.oracle.com/support/products/oas/sparc30/html/ows08811.html

  • Can you give a document link for script logic for NW version7??

    Hi all,
        who can give a document link for script logic for nw version7??
        thanks in advance!!

    Hi Sheldon,
    I read through your "HOW to...Custom BADI for replicating Destination_App...." and it was great. However, Can this call also be used with WHEN/ENDWHEN statements? In the MS version, when using Destination_App, I was also able to map source accounts into the correct destination accounts as well as source E type dim to desination E type dim with the following script (the mapping to destination ID was stored as properties within the source dimensions).
    *INCLUDE SYSTEM_CONSTANTS.LGL     
    *SELECT(%OPACCT%, "[ID]", "OPACCOUNT", " [TRF_FPA] = 'Y'")
    *SKIP_DIM = COSTCTR
    *ADD_DIM = BRANDS
    *RENAME_DIM OPAccount = Account_F
    *RENAME_DIM CATEGORY = CATEGORY_F
    *RENAME_DIM ENTITY = MARKET
    *RENAME_DIM DATASRC = DATATYPE
    *XDIM_MEMBERSET ENTITY = %ENTITY_SET%
    *XDIM_MEMBERSET CATEGORY = %CATEGORY_SET%
    *XDIM_MEMBERSET TIME = %TIME_SET%     
    *XDIM_MEMBERSET OPACCOUNT = %OPACCT%
    *DESTINATION_APP = FPA
    *CLEAR_DESTINATION
    *DESTINATION OPACCOUNT = %OPACCT%
    *DESTINATION TIME = %TIME_SET%
    *DESTINATION CATEGORY = %CATEGORY_SET%
    *DESTINATION CURRENCY = LC,USD
    *WHEN ENTITY
    *IS %ENTITY_SET%
    *REC(ENTITY=COSTCTR.FPA_MKT,OPAccount=OPAccount.Consol_FPA)     
    *ENDWHEN     
    *COMMIT
    I have tried the following code in the NW version, and it won't validate. Do you know if there's a way to achieve this?
    *XDIM_MEMBERSET CATEGORY<>ACTUAL
    *XDIM_MEMBERSET ACCOUNTHR =BASE_ANNL_SAL,BONUS,BENEFITS_TAX
    *XDIM_MEMBERSET CURRENCY=LC
    *START_BADI DAPP
    DESTINATION_APP=CC_PLAN
    RENAME_DIM="ACCOUNTHR=ACCOUNTCC"
    WRITE=OFF
    *END_BADI
    *WHEN ACCOUNTHR
    *IS "BASE_ANNL_SAL","BONUS","BENEFITS_TAX"
    *REC(ACCOUNTCC=ACCOUNTHR.CCPLANACCT)     
    *ENDWHEN
    Regards,
    Karen

  • Can you give me some idea why Temperature Need to cool down before you can use it. as this appears after 5min using.

    Dear Sir/Madam,
    My questions:
    Why Temperature appears and ipad need to cool down after 5m of using and not even hot. The guy from the apple store where i bought my Ipad2 told me that the motherboard need to be replaced. Ca you help me and give me some idea on how much it cause of the motherboard.
    Thank you
    Victoria

    if you need a new logic board for you iPad 2 i am sure the cost will be about 50% of what you paid for the iPad 2 $249.00, Take a look at this link, http://www.apple.com/support/contact/

  • Please can you give me sample code for badi

    Dear Freinds
             i have tried writing coding for the badi HRPAD00INFTY, but iam not able to get, my requirement is when the user enters for the ansal amount that amount
    should be divided by 12 and should be defaulted for basic pay (p9008-bet01)  based on the wage type (p9008-lga01=MFPY),
    i have calculated the value as , but now i have to assign the value to  p9008-bet01.
    please let me know how i should code.
    i am giving the code which is have written can you please let me know where i am wrong
    method IF_EX_HRPAD00INFTY~AFTER_INPUT.
    data: wa_pa0008 type pa0008.
    select Single * from pa0008 into wa_pa0008 where pernr = NEW_INNNN-pernr .
    if wa_pa0008-lga01 = 'MFPY'.
         new_innnn-bet01 = wa_pa0008-ansal / 12  -
    here iam not able to assign  
    endif.
    endmethod.
    regards
    syamla

    Hi pranesh
               thanks for  replying , but the only problem is i have to default the value
    for bet 01 from ansal
    ie from p0008-ansal to q0008-bet01.
    then only the method
    CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
    EXPORTING
    prelp = new_innnn
    IMPORTING
    pnnnn = wa_0008. " wa_9008
    will trigger for me and th wa_0008 will be filled up.
    since when i say create 0008 , then if i entering for ansal then i asking for entering
    value for q0001-bet01 , since the wage type for which i have to default the bet01
    will be there on the screen before only, so the screen expects that i have to enter the value for amount bet01, so that measn bet01 becomes mandatory,
    the method will work for me if iam able to make the bet01 being filled automatically from the calcualtion ( as per my requiremnt) i.e ansal/100.
    regards
    shanti

  • Can you give me some color correction/film grain suggestions?

    Hey guys, I have CS3 and an Intel Q9550 @ 3.4 Ghz PC set up.  I am working on an HDV project.  My files are .m2t files brought in through HDV Split.  Anyway, below are the main four shots of the Teaser Trailer I just captured.  I have After Effects and can probably get my hands on Combustion or Magic Bullet, but I'd rather do everything in Premiere Pro.  What suggestions do you have in regards to color correction and film grain?  You can use the images if you want to mess around in Photoshop with to show me examples if you need to.  THANKS!!!

    For "film grain," I assume that you wish to ADD it. If so, Jim has nailed it.
    If you wish to remove it from, say an underlite, underexposed Clip, then Neat Video is the tool for that.
    Good luck,
    Hunt

  • Can you give me some ideas on which to buy between macbook air and macbook pro?

         I am going to start another year in college very soon and I need a laptop to handle my school work or projects. I don't know what to choose between Macbook Air 13" (2013) and Macbook Pro 13" (RAM 8GB - Not Retina Display). Here are what I need to do on computer:
         - Long time surfing through the internet.
         - Social network : Facebook, Instagram, Line, Skype ....
         - Watching movies online (mayb more than 3-4 hours)
         - Typing documents or making slide shows.
         - A lot of documents, HD videos/movies, photos and music.
         - Using some graphic/plan design programs such as CorelDraw, Photoshop, Illustrator, AutoCad and so on. (Monthly but I still have to use it.)
         - Games are no needed cuz m not a gamer.
         That's all or maybe more, but I can't think of right now. My money is around 1500$. If you guys think I might need Air, should I configure it to match my expectations? I hope to having some good ideas from you. Thanks in advanced.

    Ive got BOTH the Pro and AIr youre interested in, for what YOU say you want, Id get the Air.
    Since you said you were only going to "some graphic/plan design programs", the Air is perfect for moderate Photo editing.
    and you said no games.
    Air has fewer parts, only one moving part (the fan), lite as an Ipad (almost) but a full powered computer.
    No HD heads to crash, fewer parts = simplicity = less to fault.  
    Runs cooler than anything else out there (which = durability).  Heat is a killer on a scale of 10X over that of accidents.
    Pack around a regular notebook around about 20 days, then an Air, .....after that the standard laptops stays at home.    
    Air is the only Mac that has Haswell, 802ac wifi, and incredible 12hr. batt life in 13" I5.
    Get the 13" much longer battery life, and the screen real estate is better, Ive owned both 11" and 13".     13" also has an SD card slot the 11" doesnt have.
    Picture of macbook Air simplicity below

  • Can you give me some opinions?

    I didn't see a Forum on here appropriate for Printer questions, but since everyone uses a printer, I hope you don't mind my intruding here.
    I got a new Macbook today and since I got basically a free printer, I chose the Canon PIXMAmp620 for an extra $50 and am wondering..... I've always used an HP and cartridges and paper was cheap because the cartridges lasted forever. Is that so with this Canon, or is it expensive to run?
    They couldn't answer these questions at the Apple store. I'd appreciate any opinions I can get, because I can return it if I do it soon (I haven't set it up yet).

    We've got the printer set up now so time will tell if it's not economical. I don't like the idea of having to worry all the time about saving on ink.... My HP lazer-jet printer could print lots of reams of paper without needing a new cartridge. I could extend it's use by 6 months or so just by gently shaking the cartridge. This Canon is very slow to start printing.... My friend says she doesn't buy the color packets for hers any more, just the black for straightforward printing. That seems to save her money.

  • Okay so lately someone has been trying to phish my computer but i dont know how to stop them. Can anyone give me some suggestions? And is it possible i can report these people to the police?

    ok so lately someone has been trying to phish my computer but i cant really do anything about it. I cant use Youtube and it sometimes doesnt let me go on any social networking sites. Is it possible for me to report these people to the police for tampering with my computer? And how can i make sure they stop

    HellO:
    Is it possible for me to report these people to the police for tampering with my computer
    As far as I know, phishing is not a criminal act.  If you fall for it, you might be considered less than the brightest bulb in the lamp.
    Phishing is a common problem for most of us.  In my case, I report it to the web site involved ( a bank, for example) for their follow up.
    Barry

  • Need Help !!!!! ( Urgent )I can't open any document in word after update the pages version, can anyone give me some suggestion how to do it ?

    PLSSSSSS hep me how to solve my problem ? Thank you very much !

    Pages creates .pages files that only it can open and there are several version of each of those.
    Menu > File > Export > Word .doc/docx
    Peter

Maybe you are looking for

  • Change System Status of SO item dynamically based on Reason for Rejection

    Hi ppl, Our SAP user has raised a requirement as described below: In sales order (in creation mode (VA01) or change mode (VA02)), if at the item level, the reason for rejection is mentioned, then the system status for that item should be automaticall

  • Itunes 7 and ipod will not talk.  No WAY TO RESTORE FACTORY SETTINGS!

    Hi, update to itunes 7, plugged in my ipod and got the message "itunes cannon read the contents of the ipod "IPOD" Go to the Summary tab in ipod prefrences and click Restore to restore the ipod to factory settings". But there is no ipod prefrences ta

  • Canon SX50HS Scroll Wheel Not working

    Hi all, My SX50HS is approx. 3months old, and suddenly the scroll wheel stopped working. All the other functions seems to be working quite well. I went to the support center since the camera is still under warranty, and they said that they have to re

  • Can we see the code of GUI UDF functions

    Hi All, Can we see the code of GUI UDF functions? Which language it has been written? Cheers! Samarjit

  • Job opportunities for CLAD

    Hi,     I am R.Narayana vadivu, completed my B.E(Electronics and Communication Engineering) this year(2014). I passed in CLAD exam with 75%. Can anybody please help me to know about LabVIEW job openings in Chennai. Thanks