Exception "algorithm ARC4 is not available from Provider Cryptix "

hi all
i am developing the application in which i am using two encryption/decryption algorithms one is "RC4" and second is "AES(256 bit key)".
1.first i am taking the credit card number from database which is in
the encrypted format using 'RC4".
2.After taking the Credit card number from database i am decrypting them using RC4.
3. After decrypting them i am encrypting them using "AES(256 bit key") and putting the paymentid and encrypted credit card number in HashMap.
For that i have written following classes
RC4EncMemory.java ( which is taking encrypted credit card number from database ,decrypting them using "RC4" and then encrypting them using "AES")
import java.security.GeneralSecurityException;
import java.security.Security;
import java.sql.*;
import java.util.*;
import java.util.HashMap;
import javax.crypto.SecretKey;
import cryptix.jce.provider.key.RawSecretKey;
import cryptix.provider.Cryptix;
public class RC4EncMemory
     DbAccess db=null;
     RC4EncMemory crypt=null;
     PreparedStatement pstmt=null;
     ResultSet rs=null;
     EncryptionPerformance per=null;
     AESEccryption aes=null;
     private String originalCCnumber=null;
     private int paymantid;
     private byte[] b;
     private byte[] aesencrypted;
     public RC4EncMemory()
     {db=new DbAccess();}
     public void selectAllCCNumber()
          HashMap allccnumber=new HashMap(1000);
          String qry =DbAccess.getPropertyValue("cedera.ccnumber.selectccnumberFromPayment");
          System.out.println(qry);
          try
          {rs=db.getResultSet(qry);
          if(rs!=null)
          {     crypt=getInstance();
               while(rs.next())
                    System.out.println("In while");
                    paymantid=rs.getInt("paymentid");
                    b=rs.getBytes("ccnumber");
                    System.out.println("paymantid >>> " + paymantid);
                    originalCCnumber=DecryptCCNumber(b);
                    Security.removeProvider("RC4");
                    System.out.println("decrypted original >>> " + originalCCnumber);
                    aesencrypted=getAESEncryption(originalCCnumber);
                    //allccnumber.put(new Integer(paymantid),new String(originalCCnumber));
               Set key=allccnumber.keySet();
               Iterator i=key.iterator();
               while(i.hasNext())
               {System.out.println(" Payment id from HashMap " +(Integer)i.next());
               System.out.println("Size of the HashMap: >>" + allccnumber.size());
          else
               System.out.println("empty");
          allccnumber.clear();
          }catch(SQLException exp)
                         System.out.println("Exception in SQL" + exp);
                    finally
                         try{          rs.close();
                                   pstmt.close();
                                   db.conn.close();
                         }catch(Exception er){}
     public String DecryptCCNumber(byte[] encryptedCCNumber)
          {     String decrypted=null;
               if(encryptedCCNumber!=null)
               {decrypted = decrypt(encryptedCCNumber);
               return decrypted;
     public String decrypt(byte data[])
          if(data == null || data.length == 0)
          return null;
          try
               xjava.security.Cipher cipher = xjava.security.Cipher.getInstance("RC4", "Cryptix");
               cipher.initDecrypt(rsaKey);
               byte out[] = cipher.crypt(data);
               return new String(out);
          catch(GeneralSecurityException se)
          { System.out.println("SecurityException in decrypt method: " + se);
          return null;
     public static synchronized RC4EncMemory getInstance()
          if(_rc4decryption == null)
               Security.addProvider(new Cryptix());
               _rc4decryption = new RC4EncMemory();
               makeRC4Key();
          return _rc4decryption;
private static void makeRC4Key()
{          String seed = "CvMjSpVrGsTnAj";
          rsaKey = new RawSecretKey("RC4", seed.getBytes());
public byte[] getAESEncryption(String originalCCNumber)
{     aes=AESEccryption.getInstance();
     return aes.encrypt(originalCCNumber);
public static void main(String args[])
     RC4EncMemory mem1=new RC4EncMemory();
     mem1.selectAllCCNumber();
     private static SecretKey rsaKey = null;
     private static RC4EncMemory _rc4decryption = null;
In the above programs i am getting the output as follows
output:-
in while
paymantid >>> 3338157
decrypted original >>> 5856373015065936
inside encrypt method
Original Data----->5856373015065936
Encrypted Data----->[B@3cc0bc
after encryption of data
In while
paymantid >>> 3338169
SecurityException in decrypt method: java.security.NoSuchAlgorithmException: algorithm ARC4 is not available from provider Cryptix
decrypted original >>> null
In while
paymantid >>> 3338290
SecurityException in decrypt method: java.security.NoSuchAlgorithmException: algorithm ARC4 is not available from provider Cryptix
decrypted original >>> null
my program is able to decrypt the only first credit card numbers using RC4 and then encrypt it using AES(as shown in bold above) but it is not able decrypt the rest of the credit card number from the database using "RC4" and it is throwing above exception regarding the "RC4" algorithm .
can anybody tell me what is reason behind this exception? my guess is the we cann't use the two providers simultaneously.
please anybody help me
AESEccryption.java(which helps to encrypt the credit card number in AES using encrypt method )
import java.security.GeneralSecurityException;
import java.security.Security;
import java.sql.*;
import javax.crypto.spec.SecretKeySpec;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import cryptix.provider.Cryptix;
public class AESEccryption
     AESEccryption cryptAES=null;
     AESEccryption cryptAES1=null;
     public AESEccryption(){}
     public static synchronized AESEccryption getInstance()
          {     if(_aesEncryption == null)
                    Security.insertProviderAt(new BouncyCastleProvider(),3);
                    //Security.addProvider(new BouncyCastleProvider());
                    //Security.addProvider(new Cryptix());
                    _aesEncryption = new AESEccryption();
                    makeAESKey();
               return _aesEncryption;
     private static void makeAESKey()
               String seed = "FFF3454D1E9CCDE00101010101010101";
               int length=seed.length();
               if(length!=32)
               {     System.out.println("Key size must be 32 characters only");
                    System.exit(0);
               skeySpec = new SecretKeySpec(seed.getBytes(),0,32,"AES");
public byte[] encrypt(String data)
     {     if(data == null)
          return null;
          try
          {     System.out.println("inside encrypt method");
               javax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance("AES");
               cipher.init(javax.crypto.Cipher.ENCRYPT_MODE,skeySpec);
               byte out[] = cipher.doFinal(data.getBytes());
               return out;
          catch(GeneralSecurityException se)
               System.out.println("SecurityException: " + se);
          return null;
     public static void main(String args[])throws Exception
     {     AESEccryption aesenc=new AESEccryption();
          aesenc.selectAllCCNumber();
          if(flag)
               System.out.println("Flag " + flag);
     private static SecretKeySpec skeySpec = null;
     private static AESEccryption _aesEncryption = null;
Regards
Pandurang
Message was edited by:
andylimp12
Message was edited by:
andylimp12
Message was edited by:
andylimp12

Hi Nith,
Previously I have changed the document dispostal time out to 1 year but the error still occurs.
Now I change the document inline size from 64 KB to 27 MB (estimated max document size) and see how the LCES behaves.
I suspect if document size is larger than document inline size then LCES will write to some temp file. After that, user does not process the task for a long time, e.g. 3 days. And during the 3 days, the unix system/ websphere auto clear the temp file. After 3 days when user accesses the task again, LCES will complain "document is not in sending server side any more" ....
I refer to : http://blogs.adobe.com/livecycle/2008/10/livecycle_tuning_knob_default.html
For the Document sweep interval, I think, it relates Watch Folder, not this error so I don't change it.
Regards,
Anh

Similar Messages

  • IOS 12.4(15)XW not available from Cisco Web site

    Can anyone please tell me why this version is not available from Cisco Web site as I am trying to download it to test on a cisco 2851 series router .The documnet below in page 7 & 10 describe  the requirement for this version. What is the replacement version for this if that is not available?

    Well, maybe I am missing something but I do not see a 12.4(15)XW release on CCO for the 2851 platform. I see references to it in documentation but I don't see actual release notes or a download link. So, where exactly did you see this particular version for this platform?
    Based on the PDF provided by the OP I think he is trying to add a fax module. In the PDF it is stated a few times that you can use 12.4(15)XW or 12.4(20)T. What this basically means is that these are minimum IOS version levels that you need to use that module. You would not want to run the minimum in most cases because software defects are abundant and seem to be endless. IOS release trains are somewhat over complicated in my opinion but here is my quick take. The XW is a early deployment release. These releases are "one offs". Usually added to incorporate a new piece of hardware. Sometime after these releases come out (again, to get the product to market) the code is incorporated in a T-train (in this case, 12.4(20)T). The idea is that the T-train code is used to introduce features/hardware/etc. that will be rolled into the next main-line release (in our world that is 15.0).
    Back to your issue. I can't find 12.4(15)XW but apparently p.bevilacqua has been able to find it. Maybe he would be willing to provide the link. If that doesn't pan out, I suggest that you look at releases after 12.4(20)T (including the latest service release for 12.4(20)T). They go up to 12.4(24)T. T-trains are touchy so you have to do your research and testing. I have had decent success with 12.4(20)T until recently (MGCP and T.38 fax, no joy). I have also used 12.4(24)T with OK success thus far. I know that p. bevilacqua doesn't like the 12.4T train "because its buggy". My opinion is all of this software is buggy. You have to identify the minimum release that will work with your hardware. Go to the latest minor/service release and research the bug toolkit. Oh, and always test.
    OK. Down the rabbit hole I go.
    HTH.
    Regards,
    Bill
    Please remember to rate helpful posts.

  • HT204266 I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the di

    I live in China, have Dutch nationality, and no US address or Credit Card; how can I have access to products from the US iTunes store, in particular music, when such items are not available from the China iTunes store? In general, what are the differences between countries' iTunes offerings? Does one really need an address and a credit card for any country to be able to access that countries iTunes store? Why these restrictions?

    You cannot.
    You cannot use another countrys itunes store.
    You must be physically locates inside the borders of a country to use that countrys itunes store and a credit card issued in that country with a valid billing address in that country.
    The owners of the distribution rights of movies/music/etc differ by country.  These distributors decide who can sell their content in that country.
    Buy from another source if your countrys itunes store does not carry somehting that you want.

  • I have edit access to someone else's calendar.  In iCloud i can add an event to this calender.  In My calendar on my Mac I can see the calendar in the list, but when I try to add an event to this calendar, it is not avail from the list in event to select

    I have edit access to someone else's calendar.  In iCloud i can add an event to this calender.  In My calendar on my Mac I can see the calendar in the list, but when I try to add an event to this calendar, it is not avail from the list in event to select.  Any help appreciated.  Thanks

    Hi Chris,
    You can't get rid of an alert. The least you can have is one that says "none".
    Nevermind, I see you learned how to edit the event.

  • My Canon MX310 Series Printer failed as the software "is currently not available from the Software Update Server"? What is the matter with Apple OSX Mountain Lion?

    Mountain Lion stopped working with our Canon MX310 Printer? Why is the software not available from the Software Update Server?

    The printer and ICA scanner driver is available from Apple. There is probably some other reason why you cannot get the drivers.
    You can also get the drivers from Canon.
    But reading your post it sounds like you were printing to the MX310 and recently it has stopped printing. Is this the case?

  • Why is the documentary series Bomb Patrol Afghanistan not available from the Australian iTunes store?

    Why is the documentary series Bomb Patrol Afghanistan not available from the Australian iTunes store?

    Because it is the producer's decision where they want their items to be available. You can request for it if you want to.
    http://www.apple.com/feedback/itunes.html

  • Impersonate domain user to call MessageQueue.Create() to create a private queue throw exception "Msmq service is not available".

    The code impersonate a domain user to create a private messaging queue on local machine, using MessageQueue.Create(".\\myqueue").
    When the current user is a member of local administrators, it works well. 
    When the current user is a member of local users, it throw exception "Msmq service is not available."

    Hi Psun,
    In my opinion, this thread is related to MSMQ forum. So please post thread on that forum for more effective response. Thank you for understanding. Please refer to the following link.
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?forum=msmq
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • All SYFY online on demand has error "Content not available from this domain"

    I keep getting an error on any SYFY online on demand shows which says "Content not available from this domain." This applies to any show from SYFY that I click on to test.  Other channels don't have that error.

    Hi,
    Thanks for bringing this issue. Yes, the message should be SEVERE. This will be fixed.
    You may also want to subscribe to [email protected] and bring up any issues, enhancements.
    Regards,
    Deepak

  • Valid installation itunes pkg, is not available from network resource, what ca I do?

    I have been tryng unsuccessfully to install Itunes.  I keep getting the msg. that a valid installation pkg. is not available from its network resourse.  I have windows vista.  Sometimes it says missing .dll files.  What can I do to correct this?  My Itunes worked perfectly until I was asked to upgrade it 2 weeks ago.  Now nothing works with anything else.

    See TS3704: "The feature you are trying to use is on a network resource that is unavailable" alert appears when removing Apple software in Windows.
    tt2

  • TS1702 I can not get the 12 days of Christmas to work. The app loads but it says it is not available from the Canadian store at this time

    I can not get the 12  days of Christmas to let me get the free gift. I restarted my iPad, I reloaded the app, my iTunes is a Canadian address . The error I get is " it is not available from the Canadian store at this time"

    Hi,
    See this thread:
    https://discussions.apple.com/message/20681369#20681369
    Biti

  • Driver software is not available from Apple

    Was using an HP LaserJet 1020 without any problems until last week, when it just gave out and it shows the following error every time: "driver software is not available from Apple". Have tried to install the latest drivers but it won't allow it with the same error.
    Also tried following these instructions http://blog.jayway.com/2010/04/08/hp-laserjet-1020-in-snow-leopard/ but it gets stuck on the third step. The driver list can't be opened and it reads "driver software is not available from Apple" again.
    Any suggestions?

    From what I can tell from online research, HP never claimed the 1020 printer series was compatible with Macs or has ever developed any OS X drivers for them. For instance, from the "Specifications" tab of this product info page:
    Because of that, I'm kind of amazed that you ever got your 1020 to work with any version of OS X, unless some sort of hack or third party driver was involved. If so, you might want to check with the originator of that workaround to see if there are any new developments that would get it working again.

  • Jobserver not available from specific client installation (from Designer)

    Hi,
    I have installed Designer on a PC and everything seems to work fine, except I can not run jobs using the associated jobserver.
    When I open up designer, I get a message that the jobserver is not available. When I go to the admin console (on the same PC) I can run jobs.
    Also, when I use another computer and log on to the same repository, I can use the jobserver from the designer.
    What can possibly be wrong at PC level which prevents me from using the jobserver from Designer?
    I have re-installed designer but it did not have any effect.
    Any help greatly appreciated - I have no idea how to troubleshoot this is also welcome.
    Thanks in advance,
    Jan.

    Hello,
    1.  Make sure that you can ping the Job Server from the client machine - Use the fully qulaified domain name (not ip address)
    2.  make sure that you can ing the client machine from the Job server - Use the fully qualified domain name (not ip address)
    if steps 1 or 2 fail then you need to contact you network admin to resolve the connectivity issues. If you are able to connect using the ip address and not the fully qualified name, you can add an entry to you local host file.
    3.  make sure that you do not have a firewall blocking the Job Server port preventing inbound connections to the job server
    4.  make sure that you do not have a firewall blocking ports from the job server to the client machine.
    The default port for the job server is 3500 make sure that this port is open for connections from the client
    you must also make sure that there is no firewall blocking any ports for connectivity FROM the Job Server TO the client.
    if so ask the network admin to unblock these or provide a port range for you to use.
    if they provide a port range for connectivity from the job server to the client you must go to Tools --> options -->   Designer -->Environment and set the port range in the Designer communication ports section

  • HP Driver "Can't install because it is not available from Software Update Server"

    Proplem: Can't use my HP Officejet 6500 E709n on my MacBook Pro, even using USB connection.    I click on sign, get add printer window showing the HP 6500 printer as USB Multifunction.  I select and press 'add'.  I get 'setting up ...' window.  After a while I get the error window, "Can't install the software for the HP Office jet 6500 E709n because it is not currently available from Software Update Server."  Only option is cancel.
    HP site says that it supports Mountain Lion and the only way to get the driver is through Apple's Software Update.
    Apple's site says Mountain Lion supports HP 6500 printer.
    The Windows 7 computer on the netword prints fine to it.
    I would really like to get this connected.  Does anyone have a clue why the driver is not on the Software Update Server what the fix is?
    Thank you for the help.

    Fantastic, Mene1 & John.  Thank you.  I deleted the HP Folder, deleted trash, reboot, and reinstalled.  USB installed like a charm.  Was able to print and scan.   I even noticed that the Fax printer came up for both USB and 192.168.1.65.  I installed the fax printer for the network and it works great without USB.   
    However, the network for the printer never showed up in the list.  I tried IP option and entered the address.  It correctly identified the printer in the "use" field.  However, when I click on 'add' is has a window that says, "Unable to verify the printer on your network.  Unable to contact to '192.168.1.65' due to an error. Would you still like to create the printer?"   I choose Continue, and it creates the printer.  Printing, it just sits there trying to connect with the printer.    Again, the printer is hardwired into my home network and I am using my AT&T U-verse Wi-Fi connection to my MacBook Pro (which works for Fax on the printer). 
    Any ideas?

  • Exception caught: Language 'VI' not available; nested exception is com.syclo.sap.exception.SAPException: Agentry

    Hi,
    I test my Agentry application on my ipad, it can connect to SAP server but it then display the error:
    Language 'VI' not available; nested exception is:  |
    com.syclo.sap.exception.SAPException |
    It can load data fine on my ATE.
    The language on my ipad is English. Then why does it still throw the exception. Please help me. Thank you.
    Edit: Solved. Change the Region setting to US

    My javaBE is as follows. Can you help to check if i miss anything in my file
    [HOST]
    server=be1.vdc.csc.com
    APPNAME=ZCH_MATERIALLIST
    [CONFIG]
    source=SAP
    [CLIENT_NUM]
    CLIENT=800
    [SYSTEM_NUM]
    SYSNUM=01
    [LOGGING]
    Level=3
    [LOGON_METHOD]
    LOGON_METHOD=USER_AUTH
    [SERVICE_LOGON]
    UID=hngu3
    UPASSWORD=xxxxx
    [REQUIRED_BAPI_WRAPPER]
    com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
    com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
    com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
    com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
    com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
    com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
    com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
    com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
    com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
    com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
    com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
    com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
    com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
    com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
    com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
    com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
    com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
    com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
    com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
    com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
    com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
    com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
    com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
    com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRT

  • Keynote Remote not available from South African Mac App Store

    Hi
    I Just bought Keynote from the Mac App Store and discovered that the sister app Keynote Remote is not available in the South African Mac App Store. Not only is this app missing but there is no games category and there are other very useful apps which aren't listed. This means no Fight Control or Simon Says
    Any way this can be rectified?

    Hey Cybeo,
    You are correct! There isn't a games section on the South African Mac App Store. Strange.
    I would drop a note to Apple at http://www.apple.com/feedback/ unless there is a reason someone else might know of?
    Is the Keynote Remote application not showing up for you in the iTunes App store under South African?
    Direct Link http://itunes.apple.com/za/app/keynote-remote/id300719251?mt=8
    Keep in mind that the stores while they share the same AppleID are different for iOS devices like iPhones/iPads and iPod Touch then it is for your Macintosh Computer.
    I hope that helps!

Maybe you are looking for

  • Can't figure out how to do a specific calculation

    I have a report that is broken into columns in the detail section.  From the data in that section I need to create a formula that looks something like the following: (column A - Column B)/column A Now because I have it formatted with multiple columns

  • Can i use prepaid card in itunes store

    can i use prepaid card in tunes store

  • How do I resolve devices using same ip address?

    I keep getting  the message another device on the network is using your computer IP address.  I'm trying to connect my airport time capule and I'm using a MacBook Pro.  I've shut down and restarted and checked everything already discussed in posts.  

  • BPC 10 NW Book Publication Err

    Hi All, We are on BPC 10 NW SP5 Release 801 and EPM Add-In SP16. When my user trying to run a book of reports in one single pdf we are getting this error. It is able to create upto 3 report and failing on 4th one onwards. Even though we changed order

  • How to open my iPod touch if I forgot the password

    I Forgot the iPod on the iPod touch how can I reset it?  Help!