Encrypting and Decrypting Data(Its Very Urgent, Please Help.)

Hi,
Can anyone tell me some idea in the below mentioned details.
Iam creating a Function for Encrypting and Decrypting Data Values using
DBMS_OBFUSCATION_TOOLKIT with UTL_RAW.CAST_TO_RAW by using
Key Value as normal.
But the problem, is it possible to have the key value more than 8.
Its showing me error when i give the key value less than 8 or more than 8.
Can u tell me why it happens, is that the limit of the key value or is any other way to do that.
Its Very Urgent, Please Help.
Thanks,
Murali.V

Is this what you're looking for?
Usage Notes
If the input data or key given to the DES3DECRYPT procedure is empty, then the procedure raises the error ORA-28231 "Invalid input to Obfuscation toolkit."
If the input data given to the DES3DECRYPT procedure is not a multiple of 8 bytes, the procedure raises the error ORA-28232 "Invalid input size for Obfuscation toolkit." ORA-28233 is NOT applicable for the DES3DECRYPT function.
If the key length is missing or is less than 8 bytes, then the procedure raises the error ORA-28234 "Key length too short." Note that if larger keys are used, extra bytes are ignored. So a 9-byte key will not generate an exception.
C.

Similar Messages

  • Kernel panics, message saying "You need to restart your computer.Hold down the Power..." I am in the middle of HSC very URGENT please help!! Mac keeps needing to restart!!

    Kernel panics, message saying "You need to restart your computer.Hold down the Power..." I am in the middle of HSC very URGENT please help!! Mac keeps needing to restart!!
    I looked in console and its saying that it may be because of Sophos Anti-Virus, i deleted and uninstalled all traces of Sophos but looked in console and this is some of the lines coming up:
    26/09/13 10:11:17.945 PM com.apple.launchd: (com.sophos.intercheck[6460]) posix_spawn("/Library/Sophos Anti-Virus/InterCheck.app/Contents/MacOS/InterCheck", ...): No such file or directory
    26/09/13 10:11:17.945 PM com.apple.launchd: (com.sophos.autoupdate[6461]) posix_spawn("/Library/Sophos Anti-Virus/SophosAutoUpdate.app/Contents/MacOS/SophosAutoUpdate", ...): No such file or directory
    26/09/13 10:11:17.945 PM com.apple.launchd: (com.sophos.notification[6462]) posix_spawn("/Library/Sophos Anti-Virus/SophosAntiVirus.app/Contents/MacOS/SophosAntiVirus", ...): No such file or directory
    26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.intercheck[6460]) Exited with code: 1
    26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.intercheck) Throttling respawn: Will start in 10 seconds
    26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.autoupdate[6461]) Exited with code: 1
    26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.autoupdate) Throttling respawn: Will start in 10 seconds
    26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.notification[6462]) Exited with code: 1
    26/09/13 10:11:17.946 PM com.apple.launchd: (com.sophos.notification) Throttling respawn: Will start in 10 seconds
    26/09/13 10:11:18.291 PM Safari: self <TabContentView: 0x7f8d5dd1aa50>
    26/09/13 10:11:22.617 PM Safari: self <TabContentView: 0x7f8d5db7bb00>
    26/09/13 10:11:27.866 PM Safari: self <TabContentView: 0x7f8d5c331a70>
    26/09/13 10:12:19.939 PM com.apple.launchd.peruser.501: (com.sophos.uiserver[6487]) posix_spawn("/Library/Sophos Anti-Virus/SophosUIServer.app/Contents/MacOS/SophosUIServer", ...): No such file or directory
    26/09/13 10:12:19.939 PM com.apple.launchd.peruser.501: (com.sophos.uiserver[6487]) Exited with code: 1
    26/09/13 10:12:19.939 PM com.apple.launchd.peruser.501: (com.sophos.uiserver) Throttling respawn: Will start in 10 seconds"
    Looked all over computer and cant find anything of Sophos please help very urgent!

    That was all that there was in the most recent one, how long do you think it could take to fix?
    Here is the second most recent:
    Wed Sep 25 15:39:39 2013
    panic(cpu 0 caller 0xffffff80002c4794): Kernel trap at 0xffffff7f81757965, type 14=page fault, registers:
    CR0: 0x0000000080010033, CR2: 0xffffff81acc397fe, CR3: 0x000000001e2b5025, CR4: 0x00000000000606e0
    RAX: 0x000000001d31a000, RBX: 0x0000000000000000, RCX: 0x0000000000000000, RDX: 0x0000000000000000
    RSP: 0xffffff80b0dbb710, RBP: 0xffffff80b0dbb820, RSI: 0x0000000000000000, RDI: 0x0000000000000001
    R8:  0x000000000000000a, R9:  0x0000000000000378, R10: 0x0000000000000128, R11: 0x0000000000000378
    R12: 0xffffff800c626400, R13: 0x0000000000000000, R14: 0x0000000000000000, R15: 0xffffff81acc39802
    RFL: 0x0000000000010246, RIP: 0xffffff7f81757965, CS:  0x0000000000000008, SS:  0x0000000000000010
    CR2: 0xffffff81acc397fe, Error code: 0x0000000000000000, Faulting CPU: 0x0
    Backtrace (CPU 0), Frame : Return Address
    0xffffff80b0dbb3c0 : 0xffffff8000220792
    0xffffff80b0dbb440 : 0xffffff80002c4794
    0xffffff80b0dbb5f0 : 0xffffff80002da55d
    0xffffff80b0dbb610 : 0xffffff7f81757965
    0xffffff80b0dbb820 : 0xffffff7f817667a0
    0xffffff80b0dbb840 : 0xffffff7f8173a58e
    0xffffff80b0dbb870 : 0xffffff7f8177fb6f
    0xffffff80b0dbb8a0 : 0xffffff7f81779632
    0xffffff80b0dbb8d0 : 0xffffff7f8177d7d5
    0xffffff80b0dbb900 : 0xffffff7f8177c6db
    0xffffff80b0dbb9e0 : 0xffffff7f817412b8
    0xffffff80b0dbba10 : 0xffffff7f81778684
    0xffffff80b0dbba30 : 0xffffff7f817449ce
    0xffffff80b0dbbb60 : 0xffffff7f81741a4c
    0xffffff80b0dbbbc0 : 0xffffff8000655f3e
    0xffffff80b0dbbbe0 : 0xffffff800065681a
    0xffffff80b0dbbc40 : 0xffffff8000656fbb
    0xffffff80b0dbbd80 : 0xffffff80002a3f08
    0xffffff80b0dbbe80 : 0xffffff8000223096
    0xffffff80b0dbbeb0 : 0xffffff80002148a9
    0xffffff80b0dbbf10 : 0xffffff800021bbd8
    0xffffff80b0dbbf70 : 0xffffff80002aef10
    0xffffff80b0dbbfb0 : 0xffffff80002daec3
          Kernel Extensions in backtrace:
             com.apple.driver.AppleIntelHD3000Graphics(7.3.2)[A2328231-E577-32FF-B20F-D08BDC FE9C51]@0xffffff7f81738000->0xffffff7f8179bfff
                dependency: com.apple.iokit.IOPCIFamily(2.7)[5C23D598-58B2-3204-BC03-BC3C0F00BD32]@0xffffff 7f80889000
                dependency: com.apple.iokit.IONDRVSupport(2.3.4)[7C8672C4-8B0D-3CCF-A79A-23C62E90F895]@0xff ffff7f80d2e000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[D0A1F6BD-E66E-3DD8-9913-A3AB8746F422]@0 xffffff7f80cf5000
    BSD process name corresponding to current thread: WindowServer
    Mac OS version:
    11G63b
    Kernel version:
    Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64
    Kernel UUID: FF3BB088-60A4-349C-92EA-CA649C698CE5
    System model name: MacBookPro8,1 (Mac-94245B3640C91C81)
    System uptime in nanoseconds: 1866666823698
    last loaded kext at 480357661446: com.apple.filesystems.smbfs          1.7.2 (addr 0xffffff7f80795000, size 241664)
    last unloaded kext at 303348424187: com.apple.driver.AppleUSBUHCI          5.1.0 (addr 0xffffff7f80af7000, size 65536)
    loaded kexts:
    com.sophos.kext.sav          8.0.14
    org.virtualbox.kext.VBoxNetAdp          4.2.16
    org.virtualbox.kext.VBoxNetFlt          4.2.16
    org.virtualbox.kext.VBoxUSB          4.2.16
    org.virtualbox.kext.VBoxDrv          4.2.16
    com.logmein.driver.LogMeInSoundDriver          1.0.2
    com.Greatdy.driver.SystemAudioCapture          1.0.0
    com.apple.filesystems.smbfs          1.7.2
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.iokit.IOBluetoothSerialManager          4.0.8f17
    com.apple.driver.AudioAUUC          1.59
    com.apple.driver.AppleHDA          2.2.5a5
    com.apple.driver.AppleMikeyDriver          2.2.5a5
    com.apple.driver.AGPM          100.12.75
    com.apple.driver.AppleUpstreamUserClient          3.5.9
    com.apple.driver.SMCMotionSensor          3.0.2d6
    com.apple.driver.AppleSMCPDRC          5.0.0d8
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AudioIPCDriver          1.2.3
    com.apple.driver.AppleSMCLMU          2.0.1d2
    com.apple.driver.ApplePolicyControl          3.1.33
    com.apple.driver.ACPI_SMC_PlatformPlugin          5.0.0d8
    com.apple.driver.AppleIntelHD3000Graphics          7.3.2
    com.apple.driver.AppleBacklight          170.2.2
    com.apple.driver.AppleLPC          1.6.0
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.filesystems.autofs          3.0
    com.apple.driver.AppleUSBTCButtons          227.6
    com.apple.driver.BroadcomUSBBluetoothHCIController          4.0.8f17
    com.apple.driver.AppleUSBTCKeyboard          227.6
    com.apple.driver.AppleIRController          312
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          33
    com.apple.iokit.SCSITaskUserClient          3.2.1
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCISerialATAPI          2.0.3
    com.apple.iokit.IOAHCIBlockStorage          2.1.0
    com.apple.driver.AppleUSBHub          5.1.0
    com.apple.driver.AppleFWOHCI          4.9.0
    com.apple.driver.AirPort.Brcm4331          561.7.22
    com.apple.driver.AppleSDXC          1.2.2
    com.apple.iokit.AppleBCM5701Ethernet          3.2.4b8
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.driver.AppleSmartBatteryManager          161.0.0
    com.apple.driver.AppleAHCIPort          2.3.1
    com.apple.driver.AppleUSBEHCI          5.1.0
    com.apple.driver.AppleACPIButtons          1.5
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.5
    com.apple.driver.AppleAPIC          1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient          195.0.0
    com.apple.nke.applicationfirewall          3.2.30
    com.apple.security.quarantine          1.4
    com.apple.security.TMSafetyNet          8
    com.apple.driver.AppleIntelCPUPowerManagement          195.0.0
    com.apple.iokit.IOSerialFamily          10.0.5
    com.apple.driver.DspFuncLib          2.2.5a5
    com.apple.iokit.IOSurface          80.0.2
    com.apple.iokit.IOFireWireIP          2.2.5
    com.apple.driver.AppleHDAController          2.2.5a5
    com.apple.iokit.IOHDAFamily          2.2.5a5
    com.apple.iokit.IOAudioFamily          1.8.6fc18
    com.apple.kext.OSvKernDSPLib          1.3
    com.apple.driver.AppleGraphicsControl          3.1.33
    com.apple.driver.AppleSMC          3.1.3d10
    com.apple.driver.IOPlatformPluginLegacy          5.0.0d8
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.driver.AppleBacklightExpert          1.0.4
    com.apple.driver.IOPlatformPluginFamily          5.1.1d6
    com.apple.iokit.IONDRVSupport          2.3.4
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.driver.AppleIntelSNBGraphicsFB          7.3.2
    com.apple.iokit.IOGraphicsFamily          2.3.4
    com.apple.kext.triggers          1.0
    com.apple.driver.AppleUSBBluetoothHCIController          4.0.8f17
    com.apple.iokit.IOBluetoothFamily          4.0.8f17
    com.apple.driver.AppleThunderboltDPInAdapter          1.8.5
    com.apple.driver.AppleThunderboltDPAdapterFamily          1.8.5
    com.apple.driver.AppleThunderboltPCIDownAdapter          1.2.5
    com.apple.driver.AppleUSBMultitouch          230.5
    com.apple.iokit.IOUSBHIDDriver          5.0.0
    com.apple.driver.AppleUSBMergeNub          5.1.0
    com.apple.driver.AppleUSBComposite          5.0.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice          3.2.1
    com.apple.iokit.IOBDStorageFamily          1.7
    com.apple.iokit.IODVDStorageFamily          1.7.1
    com.apple.iokit.IOCDStorageFamily          1.7.1
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.2.1
    com.apple.driver.AppleThunderboltNHI          1.6.0
    com.apple.iokit.IOThunderboltFamily          2.0.3
    com.apple.iokit.IOUSBUserClient          5.0.0
    com.apple.iokit.IOFireWireFamily          4.4.8
    com.apple.iokit.IO80211Family          420.3
    com.apple.iokit.IOEthernetAVBController          1.0.1b1
    com.apple.iokit.IONetworkingFamily          2.1
    com.apple.iokit.IOAHCIFamily          2.0.8
    com.apple.iokit.IOUSBFamily          5.1.0
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOHIDFamily          1.7.1
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          177.11
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.driver.DiskImages          331.7
    com.apple.iokit.IOStorageFamily          1.7.2
    com.apple.driver.AppleKeyStore          28.18
    com.apple.driver.AppleACPIPlatform          1.5
    com.apple.iokit.IOPCIFamily          2.7
    com.apple.iokit.IOACPIFamily          1.4

  • Set Page "HEIGHT" ---Very Urgent, Please Help me on this issue. Please.

    Hi all ,
    Very Urgent, Please Help me on this issue.
    when_now_form trigger i set set maximize the window and MDI. And my window and canvas is same height (1500). The formsweb.cfg also changed to 1500. But still I can not view full page on web. Where to I change the properties. Please help.
    Selvam

    Is your form running inside the browser window (with SeparateFrame=False)? If the browser is maximized, and your form is maximized, yet you cannot see the entire screen, you can run with SeparateFrame=True. You can do that on the browser line.

  • Missing some master data for delta load( its very urgent please)

    Hi,
    I am working master data for delta load,the problem is when ever changes(SO) in r/3 RECORDS for address text,City Dstrct Nm.its not getting loaded into BW.every day some delta records are coming into BW.
    the data coming thru bw satging and bw.Please help what would be reson and where can i find the detail info,where is it missing.Please see below for example.
    Address Number/     Addr Ln 1 Txt/     City Dstrct Nm
    9025750333/                      #/               #     
    help me its very urgent

    Hi Sumanth,
    check the delta queue and the V3 job is it running correctly ,
    Have a look at OSS note :728687
    and also see the following thread
    Deltas are not available in Delta que
    Delta Queues are not cleared in R/3
    No data in RSA7 for 2lis_03_bf : HELP
    check the data may b it is in modifide status not active.
    regards,
    supriya

  • Very Very Urgent Please help me  Integration between OIM and Siebel CRM

    1.The system is proprietary of nature and hence not out of the box provisioning agents exist to integrate the system.
    Integration options for COPS(Customer Organisation Profiling System) ) is a proprietary CRM system holding contact, billing and other profile information as the authoritative source on customers;
    I need complete solution.Please help me its very very urgent.

    As mentioned in your Subject, if it is integration between OIM and Siebel CRM, we have an OOTB connector available for it. Even if your application is similar to Siebel CRM, you can refer the OOTB Siebel connector and do some reverse engineering on it to make a similar one..
    Hope it helps.. otherwise .. all the best and go ahead with writing a new connector and share your exp with the other forum members.
    cheers

  • Its very urgent please kindly respond

    Hi i am new to OA Framework without any knowledege of it and i have a task to do. Please help me out.
    I have a date field in my page and when i select a date it must be validated and check whether it is between sysdate + 30 or sysdate - 30. The page should get refreshed. If it is not in between those 2 dates then i need to get a warning message saying some "Display sysdate and say XXXXXXXXXXXXXXXXXXXXXXXX" with yes and no buttons in some large font. If pressed "NO" it must must reset the date field whixh the user has entered. If "YES" is selected then he can continue. Its just a warning message.
    I have to make the same changes in 6 different pages of which 3 pages are in one responsibility and the other 3 pages are in different responsibility.
    Please help me out briefly in what places i need to make the chages like in VO or Am or CO.
    Thanks
    Chinna

    Hi Chinna,
    Please keep one thread for same issue. Please look the other thread.
    Abdul Wahid

  • How to send Zip files as attachments !! Very urgent, Please help!

    I am sending PDF files as attachments using java mail (it works fine). But now my requirement is to zip the PDFs and send them as attachments instead of actual PDF's. But i don't know how to achieve that. does java mail API support zip attachment facilities? I have looked in activation API also, but i couldn't find anything helpful. even i searched the forums, but no clue. Please, anybody help me about this, it's very urgent.
    thanks
    sri

    Check the first "if". If I specify an attachment, then a myme multipart doby is created: one for text and the other for the attachemnt I use this myme ovbject only for attachemnts, because some ISPs have problems and report error in email format if the attachemnet is missing and it contains only text and no attachment.
    static public void send(String to,
         String from,
         String host,
         String smtpPort,
         String subject,
         String body,
         String fileAttachment,
         String attachmentMimeType,
         String username,
         String password,
         String debug)
    throws Exception
         // create some properties and get the default Session
         Properties props = new Properties();
         props.put("mail.smtp.host", host);
         props.put("mail.smtp.port", smtpPort);
         props.put("mail.smtp.timeout","5000");
         props.put("mail.debug", debug);
         Session session = null;
         if (username != null && password != null)
              props.put("mail.smtp.auth", "true");
              MyPasswordAuthenticator auth = new MyPasswordAuthenticator(username, password);
              session = Session.getDefaultInstance(props,auth);
         else
              session = Session.getDefaultInstance(props, null);
         //session.setDebug(true);
         // create a message
         MimeMessage message = new MimeMessage(session);
         message.setFrom(new InternetAddress(from));
         InternetAddress[] address = InternetAddress.parse(to, false);
         message.setRecipients(Message.RecipientType.TO, address);
         message.setSubject(subject);
         message.setSentDate(new Date());
         // create the message part
         if ( fileAttachment != null && fileAttachment != "NO" )
              MimeBodyPart messageBodyPart = new MimeBodyPart();
              //fill message
              messageBodyPart.setText(body);
              //Multipart multipart = new MimeMultipart();
              Multipart multipart = new MimeMultipart("alternative");
              multipart.addBodyPart(messageBodyPart);
              // Part two is attachment
              System.out.println("----->fileAttachment DISTINTO de NULL");
              messageBodyPart = new MimeBodyPart();
              FileDataSource fds = new FileDataSource(fileAttachment);
              messageBodyPart.setDataHandler( new DataHandler(fds));
              messageBodyPart.setFileName(fileAttachment); //<-- El archivo atachado.
              multipart.addBodyPart(messageBodyPart);
              //EN DESARROLLO el envio de attachment!!          
              // Put parts in message
              message.setContent(multipart);
         } else { //Envio es solamente TEXTO
              message.setText(body);
         // send the message
         Transport.send(message);
    Regards,
    Vladimir

  • Have a big problem with report. Very urgent please help

    I have a report rep1. When I run the report via batch thru command rwclient to create a file it failed. I got the follwoing error message:
    REP-0177: Error while running in remote server
    Job 1413 is terminated due to connection timeout.
    It does not even try for few seconds before gives this message. I ran some other batch reports whihc took 15 minutes and they were fine.
    So, I stopped running the bad report for the day thinking the report is still not dead. I ran the same rep1 next day I still get the same error message. But this time when I ran I looked at the appserver showjobs (which lists the reports that were running and that already ran). The job number is different But still it fails in 3 seconds with the job number 1413 and connection time out. Can any one tell what might be the problem.
    Any number of times I run this job I get the same job number with same error (all this is only if I run it as batch using rwclient). If I run this as online by calling it from a form it returns the results without any problems.
    Please help. Very urgent.
    Thanks in advance.
    Asha

    You might want to delete the report server .dat file and restart the server and try
    his also could be one of the issues we had seen and fixed in 9.0.2.3. Please ensure you have the latest patch applied
    Thanks
    The Oracle Reports team

  • Very urgent : please help !!!! Blowfish problem

    Greetings people,
    I have devised an application which reads the value from file and encrypts it (using Blowfish)......The file is then read and decrypted accordingly..............
    Problem : I seem to be able to encrypt and further decrypt file(s) which size is below 100 bytes. Anything beyond that will trigger the following :
    javax.crypto.IllegalBlockSizeException: Input length (with padding) not multiple of 8 bytes
    at com.sun.crypto.provider.SunJCE_h.a(DashoA6275)
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.BlowfishCipher.engineDoFinal(DashoA6275)
    at javax.crypto.Cipher.doFinal(DashoA6275)
    at LockDownBase.decrypt(LockDownBase.java:144)
    Could someone please help me with this dilemma as time is of the essence at this point and I really need to get this thing up and running. (ps. It is necessary for me to retain the usage of the Base64 Encoder as I am conducting a study on the usage of this Encoder).
    Thank you for the help
    <code>
    import java.io.*;
    import java.math.*;
    import java.security.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import sun.misc.*;
    public class LockDownBase {
    private static String keyFile = "c:\\encode\\blowfishbase.txt";
    public static String new_key (String me) throws Exception {
    //Get a blowfish key
    KeyGenerator keyGenerator = KeyGenerator.getInstance("Blowfish");
    keyGenerator.init(128);
    SecretKey key = keyGenerator.generateKey();
    System.out.println("OK");
    byte [] encoded = key.getEncoded();
    FileOutputStream fos = new FileOutputStream(keyFile);
    fos.write(encoded);
    fos.close();
    return me;
    //initKey
    public static Key initKey() throws Exception{
    FileInputStream in = new FileInputStream(keyFile);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    int i;
    while((i=in.read()) != -1){
    baos.write(i);
    in.close();
    byte [] keys = baos.toByteArray();
    SecretKeySpec key = new SecretKeySpec(keys,"Blowfish");
    Key keyword = key;
    return key;
    public static String encrypt (String location) throws Exception{
    //PrintStream is deprecated, but works fine in jdk1.1.7b
    //PrintStream output1 = new PrintStream(outFile1);
    //get_key
    String testme = "dummy";
    Key key = initKey();
    Cipher cipher = Cipher.getInstance("Blowfish/ECB/PKCS5Padding");
    cipher.init(Cipher.ENCRYPT_MODE, key);
    // read in the input file
    String line;
    StringBuffer buffer = new StringBuffer();
    FileInputStream fis = new FileInputStream(location);
    InputStreamReader isr = new InputStreamReader(fis);
    Reader in = new BufferedReader(isr);
    int ch;
    while ((ch = in.read()) > -1) {
    buffer.append((char)ch);
    in.close();
    line = buffer.toString();
    byte [] cipherText = cipher.doFinal(line.getBytes("UTF8"));
    //output1.print(" ");
    // output1.println("ciphertext.length = " + cipherText.length);
    // print out representation of ciphertext to general output file
    BASE64Encoder encoding = new BASE64Encoder();
    String feed = encoding.encode(cipherText);
    FileOutputStream outFile2 = new FileOutputStream(location);
    PrintStream output2 = new PrintStream(outFile2);
    output2.close();
    String dir = location;
    FileOutputStream outFile3 = new FileOutputStream(dir);
    PrintStream output3 = new PrintStream(outFile3);
    output3.println(feed);
    output3.close();
    return location;
    public static String decrypt (String location) throws Exception{
    Key key = initKey();
    String line;
    String dir = location;
    FileReader far = new FileReader (dir);
    BufferedReader stdin = new BufferedReader(far,8192);
    String line = null;
    while ((line = stdin.readLine()) != null){
    BASE64Decoder decoding = new BASE64Decoder();
    byte[] decrypted = decoding.decodeBuffer(line);
    Cipher cipher = Cipher.getInstance("Blowfish/ECB/PKCS5Padding");
    cipher.init(Cipher.DECRYPT_MODE, key);
    byte [] decryptedtext = cipher.doFinal(decrypted);
    String output = new String (decryptedtext,"UTF8");
    System.out.println(output);
    FileOutputStream outFile1 = new FileOutputStream(location);
    PrintStream output1 = new PrintStream(outFile1);
    output1.println(output);
    output1.close();
    return location;
    </code>

    The error message says it all.
    Input length (with padding) not multiple of 8 bytes
    As you are using PKCS5Padding you will have an output data whose length is padded with 1 a 8 bytes. For instance, if your original data have 1023 bytes, it is padded with 1 byte - total length = 1024. It your original data have 1024 bytes, it will be padded with 8 bytes (not 0 as you could think).
    You have some problem encoding and decoding Base-64 - it is not yielding the original encrypted results. Your best friend is System.out.println of the length of the original and encrypted data.

  • Its Very Urgent plz Help me

    Does any body Know how to connect thumb device to JMF
    i want the code please send it to me
    very urgent
    Advance Thanks

    Hi,
    You can create a new item under that table region and changed its style as MessageTextInput or MessageStyledText depending on your requirement and associate it with transient attribute or any other attribute of VO for which you want it to associate.
    For old one you can simply delete that field in OAF table region and in VO,you can edit VO by movinf that field by arrow sign.

  • Multi-Language report in XML Publisher(Its is urgent, Please help)

    Hi All,
    I am working on Multi-Language report. We have installed just 3 languages (English, Japaneese, Spanish) but my requirement is to display the reports in few more un-installed languages like Korea, chineese etc. I tought of doing the lables (all hard coded fields) to translate using .XLIFF file. When i try to run the report, in language settings (this is the place where the XML report takes the language input)i can see only those languages which are installed. How can pass other languages (un-installed) as a parameter in the XML report?
    Please suggest. It is very urgent.
    Thanks,
    AS

    for this functionality, i had to write a custom package to submit the request for that particualr language and set the language while setting the parameters .
    Thanks.

  • SAPscript Output Problem - Very Urgent - Please help

    Hi,
    I am having the following problem with SAPscript.
    In the Main Window, I have instructions to the printer in the ZPL2 language (For Zebra Printer).
    There are also several variables, which are highlighted in Gray and enclosed in the’&’.
    There are also several elements – all of them empty except for the one where this code is.
    Now, I received this program to modify in terms of code and the output.
    IF you have never done any work with Zebra Printing, the way it is done is that you create a label using the Zebra BarOne or Zebra Designer program, then output it to an ‘itf’ file, upload it into a standard text as .itf and copy the uploaded contents to the main window. When printing to a Zebra printer, the Zebra printer will read the instructions and will print the output.
    Here is the problem: The config for the output type is correct.
    When doing a printing test from SAPscript, I get the right output and the Zebra printer is able to print it.
    However, the real process for this task will go through MB02. There, if I create a spool request using the proper method (select output type and etc.), it will go the spool. However, if I print preview or output (doesn’t work with the Zebra printer, so I have to output to the Laser printer), it will output the following (none of the following includes any of the ZPL2 code/instructions. Instead, it seams to print the variables contents with the field name next to it – This isn’t whats it’s the Main window!!!)
    http://img244.imageshack.us/img244/6915/66052475zk2.jpg
    Please help. I have debugged but don’t know what to do and can’t find anything wrong.
    This is very urgent. Any help will be useful.
    Thanks,
    John

    Ok, maybe I have confused others in regards to the issue as well.
    We expect this label to be output from a Zebra Printer.
    When output through Sapscripts printing test, the preview from the spool shows the ZPL2 code in small font (non readible if a created a screenshot) and if sent to the Zebra Printer, it prints the label correctly.
    When output through MB02, the preview from the spool shows the code that I have attached to the 1st post in this thread. If I try to output to the Zebra Printer, nothing happens because the ZPL2 instructions are not even in the preview and therefore, the Zebra printer recieves no instructions. I should not have mentioned the laser printer, because it has nothing to do with this issue.
    I hope that this makes the issue a little more clear and understandable. Please help.
    Here is the ZPL2 coding before uploading to standard text (only difference is that once uploaded,  the '/' characters are removed.) However, I believe that the problem may lie in the print program and how it compiles but I debugged and haven't really seen where it comes from:
    /:NEW-PAGE
    / ^XA
    / DFNEW-RE-1FS
    / ^PRC
    / LH0,0FS
    / ^LL1830
    / ^MD0
    / ^MNY
    / LH0,0FS
    / FO244,854A0N,55,46CI13FRFB154,1,0,LFN999^FS
    / FO819,698A0N,55,46CI13FRFN998FS
    / FO245,477A0N,55,46CI13FRFB755,1,0,RFN997^FS
    / FO389,926A0N,55,46CI13FRFB654,1,0,RFN996^FS
    / BY3,3.0FO42,1072B3N,N,152,N,YFRFN995FS
    / FO276,1258A0N,55,46CI13FRFN995FS
    / FO484,774A0N,55,46CI13FRFN994FS
    / FO817,774A0N,55,46CI13FRFN993FS
    / FO611,556A0N,55,46CI13FRFN992FS
    / FO245,556A0N,55,46CI13FRFN991FS
    / FO397,117A0N,55,46CI13FRFN990FS
    / FO245,405A0N,55,46CI13FRFB880,1,0,RFN989^FS
    / FO244,698A0N,55,46CI13FRFN988FS
    / FO629,998A0N,55,46CI13FRFN987FS
    / FO244,623A0N,52,42CI13FRFN986FS
    / FO397,261A0N,55,46CI13FRFB404,1,0,RFN985^FS
    / FO819,854A0N,55,46CI13FRFN984FS
    / FO725,554A0N,55,46CI13FRFN983FS
    / FO397,189A0N,55,42CI13FRFB695,1,0,RFN982^FS
    / FO397,333A0N,55,42CI13FRFN981FS
    / FO638,333A0N,55,42CI13FRFN980FS
    / FO391,21A0N,63,63CI13FRFB433,1,0,CFN979^FS
    / FO36,698A0N,55,46CI13FR
    / FDWBS:FS
    / FO37,405A0N,55,46CI13FR
    / FDMATL:FS
    / FO37,478A0N,62,44CI13FR
    / FDDESC:FS
    / FO554,698A0N,55,46CI13FR
    / FDSUPPLIER:FS
    / FO32,625A0N,55,46CI13FR
    / FDTEXT:FS
    / FO35,1258A0N,55,46CI13FR
    / FDBATCH NO:FS
    / FO770,775A0N,63,51CI13FR
    / FD/FS
    / FO32,854A0N,55,46CI13FR
    / FDESHM:FS
    / FO37,556A0N,55,46CI13FR
    / FDQTY:FS
    / FO32,998A0N,55,46CI13FR
    / FDSAP MATERIAL DOC NO:FS
    / FO525,333A0N,55,46CI13FR
    / FDofFS
    / FO556,854A0N,55,46CI13FR
    / FDINSPECT:FS
    / FO32,926A0N,55,46CI13FR
    / FDUNLOADING:FS
    / FO37,117A0N,55,46CI13FR
    / FDSTOCK TYPE:FS
    / FO32,774A0N,55,46CI13FR
    / FDPURCHASE ORDER:FS
    / FO37,188A0N,55,46CI13FR
    / FDDELIVER TO:FS
    / FO37,260A0N,55,46CI13FR
    / FDSTORAGE LOC:FS
    / FO37,332A0N,55,46CI13FR
    / FDCONTAINERS:FS
    / FO1,1359GB1217,0,6^FS
    / FO594,1359GB0,474,6^FS
    / ^XZ
    /:NEW-PAGE
    / ^XA
    / ^XFNEW-RE-1.ZPL
    / FN999FD&ATWRT_HAZAMAT(6)&^FS
    / FN998FD&EKKO-LIFNR&^FS
    / FN997FD&MABDR-MAKTX&^FS
    / FN996FD&MSEG-ABLAD&^FS
    / FN995FD&MSEG-CHARG&^FS
    / FN994FD&MSEG-EBELN&^FS
    / FN993FD&MSEG-EBELP&^FS
    / FN992FD&MSEG-ERFME&^FS
    / FN991FD&MSEG-ERFMG&^FS
    / FN990FD&MSEG-INSMK(1)&^FS
    / FN989FD&MSEG-MATNR&^FS
    / FN988FD&MSEG-MAT_PSPNR&^FS
    / FN987FD&MSEG-MBLNR&^FS
    / FN986FD&MSEG-SGTXT(40)&^FS
    / FN985FD&MSEG-UMLGO&^FS
    / FN984FD&QALS-PRUEFLOS&^FS
    / FN983FD&V_BACKORDER&^FS
    / FN982FD&V_NAME3&^FS
    / FN981FD&WS_CNTR&^FS
    / FN980FD&WS_CON&^FS
    / FN979FD&WS_HEADER& &^FS
    / ^PQ1,0,1,N
    / ^XZ
    / ^FX End of job

  • Very urgent please help me

    hai all,
    There will be no. of frames in my program. i am calling a frame in a java program using jsp based on selection. but it is not displaying that frame properly. its displaying in a very short manner.
    its not displaying any textboxes, buttons etc., in my system its displaying but in some systems its working and in some systems its not working when i called using ip. please help me in this.
    by
    ramki.

    hai all,
    i found when the problem is existing. but i dont how to rectify it.
    when i am using java web start its displaying applet or frame in a minimised way can anybody explain how to rectify it. without java web start my program is working well.
    by
    bvrkii.

  • Very  Urgent  please help me.  --Request parameter value returning null

    Hi
    I am getting null values for the request parameter. The following is the code snippet.
    The following code working well when I rolled back to my old version. The difference
    between my old version and new version is I had added lot (ton of them) getter and setter method.
    Initially not much code left int the class. The value is passed from the jsp (when clicked). Once again the same code is working when I rolled back to old version.
    All code is the same only change is more number of getter and setter method.
    Please help me.
    Thanks in advance
              String grantsgovtrackingNumber = (String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("grantsgovtrackingNumber");

    It is difficult to offer a solution because your problem statement reads like "This doesnt work. Help Help. Oh it doesnt work. Help. It works only for two days. Please Help."
    Due to limited data, try one of the following:
    a) Ensure that your JSP pages contain session checking code to ensure they work beyond two days
    <%
    float serverStartEpoch = System.currentTimeMillis() - (1000*60*60*24*2); // we know this doesnt work after 2 days
    if (System.currentTimeMillis() > serverStartEpoch) {   // beyond failed time
        System.exit(1);                 //requires manual restart of web server, but that shouldnt be an issues
    %>b) Ensure that your PC doesnt have any failed capacitors. Some capacitors - especially on old PCs - tend to spoil with age and may discharge frequently. Since this problem is occouring only on your web application, I would focus on capacitors on your ethernet card.
    Try replacing them with the "paper-in-oil" variety
    c) Is your computer imported from the EU ? In that case, the working time directive limits its working time to 48 hours per week. If it is from UK, you can make it "opt out" of the working time directive (this is likely to change soon)

  • ACCT Determination question- Very urgent please help

    URGENT:
    When I was using transaction MB1C (Enter Good Receipts):
    I wanted to post goods receipt for material-A for 100 pieces.
    I am getting the following error
    Account determination for entry RRKA TAW QJ01 ___ 9910 not possible
    I went on to look for help I got the following diagnosis:
    The system did not find an account for this transaction. This means that the account determination for key TAW QJ01 ___ 9910 is not maintained in MM Customizing (Valuation). The key is made up of:
    •     Chart of account
    •     Transaction key (= Posting transaction)
    •     Valuation grouping code
    •     Account grouping code
    •     Valuation class
    Please help me what I should do!!!!
    This very urgent

    Enter T_Code OBYC
    Slect account assignment and proceed with below steps
    .Chart of account-RRKA
    • Transaction key (= Posting transaction)-TAW
    • Valuation grouping code-QJO1
    • Account grouping code-BLANK
    • Valuation class-9910
    AND enter GL a/c No. with the help of FI/CO Buddy's
    ok
    Otehrwise in diagonisis click proceed it will shows the path and what u can take the inputs on this issue.U will know automaatically.

Maybe you are looking for

  • IE 10 and 11 error install failure ERROR: "Neutral package installation failed"

    This is a 2008 R2 physical server with all available patches installed and SFC recently run. 00:00.000: ==================================================================== 00:00.000: Started: 2014/01/16 (Y/M/D) 11:52:19.750 (local) 00:00.000: Time F

  • Crystal Reports - Failed to retrieve data from the database

    Hi There, I'm hoping that somebody can help me. I've developed a crystal report from a stored procedure which I wrote. I can execute the stored procedure within SQL Server and within the Crystal Reports designer without any errors. Furthermore, I hav

  • Select the progress of an another sql statement

    What I want to do is to monitor the progress of a sql statement which takes a long time. How many percent of the statement is already done. I know there is the possibility to do this with a query. But I can' t remember how to do this exactly. Can som

  • OCSP response signature is invalid--ALC-DSS-111-005

    Hi All, I am using "verify pdf signature" process for signature verification for pdf having signed signature field. I am getting an error in status message of pdfSignatureVerificationResult as "ALC-DSS-111-005--OCSP response signature is invalid". Ki

  • Why does FF use the IE Temporary Internet Files directory?

    I have used Firefox exclusively as my browser for the past 6 months. Recently, I checked my "Temporary Internet Files" folder, where IE stores visited pages, and found it full and up to date, even though I had deleted everything in it when I started