Phase 1 Encryption Method in Config File

OK...  I see the statement for the declaration of Encryption for Phase 2.  It is clear in the Crypto Map section.  Where in the config file is the Phase 1 encryption method defined for a given IPSec Tunnel?
Thanx

Hi,
From the ASA CLI you should be able to see all the phase 1 policies configured on the ASA with the command "show run crypto". They are at the very end.
Each of the policies have a priority number in which order they are checked when a VPN connection is being formed.
To my understanding none of them are locked to a certain VPN connection on your ASA. They are gone through with the other VPN device/client in the Phase1 negotiations until they find a policy match that both devices have.
In my 8.4(3) ASA I for example have the policies like this
crypto ikev1 policy 30
authentication pre-share
encryption aes-256
hash sha
group 2
lifetime 86400
crypto ikev1 policy 60
authentication pre-share
encryption aes-192
hash sha
group 2
lifetime 86400
For the older software the format might be different.
Like
"crypto isakmp policy 10"
- Jouni

Similar Messages

  • Trying to encrypt a config file with aspnet.regiis.exe.

    Hello,
    I am trying to encrypt a file using aspnet.regiis.exe. The problem I am running into is the file is not the web.config file that aspnet wants to encrypt. It is a file named CustomerConnStrings.config. I have tried to encrypt it, but aspnet_regiis errors
    out saying that "The configuratino for physical path 'c:\temp\customerconnstrings.config' cannot be opened. Failed!"
    The command I am running is :
    aspnet_regiis.exe -pef "connectionStrings" "C:\Temp\CustomerConnStrings.config"
    I tried to run cmd as both Administrator and a regular user. I have tried to run the 64bit version of aspnet_regiis. I am able to rename the CustomerConnStrings.config file to web.config and add the <configuration> lines in and then it will allow me
    to encrypt it, but I am hoping that is not the best solution.
    Thanks!

    Hi Andy,
    Please post your thread on asp.net forum for effective response.
    http://forums.asp.net/.
    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.

  • DRM-79819: Encryption error: Config file encryption is not valid for this m

    Hi ALL,
    Suddenly we got this error while running an export via batch utility. any ideas?
    Error: DRM-79819: Encryption error: Config file encryption is not valid for this machine.

    This could be an issue with your drm-config.xml file, the file that stores the DRM configuration information defined in the DRM Console. If a drm-config.xml was restored from an old backup or copied from another machine, this could well be the issue.
    In this case, you can run the DRM Console to update the file and correct it. You may see a one-time error reported when the DRM Console starts up, but the Console app should correct the file automatically after reporting the error to the user.
    If this does not resolve your issue, review the Windows App Event Log, to determine which DRM Server process(es) are also reporting this error (to narrow down any other potential issues with a config file for one of the DRM Server executables). I am guessing this error was observed in just the DRM Batch client, but related Event Log should also be present in the App Event Log.
    HTH.
    *** An additional note, if your issue proves to be the one above, you may need re-enter passwords on your defined Database Connections for defined DRM Apps. Try just re-running the DRM Console and re-saving the config initially, but be aware this may be a required additional step, re-entering the DB passwords after the updated encryption has been applied to the stored drm-config.xml file.
    Edited by: 680314 on Jan 19, 2013 11:52 AM

  • Best method for encrypting/decrypting large XML files ( 100MB)

    I am in need of encrypting XML for large part files that can get upwards of 100Mb+.
    I found some articles and code, but the only example I was successful in getting to work used XMLCipher, which takes a Document, parses it, and then encrypts it.
    Obviously, 100Mb files do not cooperate well with DOM, so I want to find a better method for encryption/decryption of these files.
    I found some articles using a CipherInputStream and CipherOutputStreams, but am not clear if this is the way to go and if this will avoid memory errors.
    import java.io.*;
    import java.security.spec.AlgorithmParameterSpec;
    import javax.crypto.*;
    import javax.crypto.spec.IvParameterSpec;
    public class DesEncrypter {
        Cipher ecipher;
        Cipher dcipher;
        public DesEncrypter(SecretKey key) {
            // Create an 8-byte initialization vector
            byte[] iv = new byte[]{
                (byte)0x8E, 0x12, 0x39, (byte)0x9C,
                0x07, 0x72, 0x6F, 0x5A
            AlgorithmParameterSpec paramSpec = new IvParameterSpec(iv);
            try {
                ecipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
                dcipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
                // CBC requires an initialization vector
                ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
                dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
            } catch (java.security.InvalidAlgorithmParameterException e) {
            } catch (javax.crypto.NoSuchPaddingException e) {
            } catch (java.security.NoSuchAlgorithmException e) {
            } catch (java.security.InvalidKeyException e) {
        // Buffer used to transport the bytes from one stream to another
        byte[] buf = new byte[1024];
        public void encrypt(InputStream in, OutputStream out) {
            try {
                // Bytes written to out will be encrypted
                out = new CipherOutputStream(out, ecipher);
                // Read in the cleartext bytes and write to out to encrypt
                int numRead = 0;
                while ((numRead = in.read(buf)) >= 0) {
                    out.write(buf, 0, numRead);
                out.close();
            } catch (java.io.IOException e) {
        public void decrypt(InputStream in, OutputStream out) {
            try {
                // Bytes read from in will be decrypted
                in = new CipherInputStream(in, dcipher);
                // Read in the decrypted bytes and write the cleartext to out
                int numRead = 0;
                while ((numRead = in.read(buf)) >= 0) {
                    out.write(buf, 0, numRead);
                out.close();
            } catch (java.io.IOException e) {
    }This looks like it might fit, but there is one more twist, I am using a persistence manager and xml encoding to accomplish that, so I am not sure how (where) to implement this method without affecting persistence.
    Any guidance on what would work best in this situation would be appreciated.
    Regards,
    vbplayr2000

    I can give some general guidelines that might help, having done much similar work:
    You have 2 different issues, at least from my reading of your problem:
    1) How to deal with large XML docs that most parsers will not handle without memory issues
    2) Where to hide or "black box" the encrypt/decrypt routines
    #1: Check into XPP3/XMLPull. Yes, it's different that the other XML parsers you are used to using, and more work is involved, but it is blazing fast and can be used to parse a stream as it is being read. You can populate beans and process as needed since there is really not much "inversion of control" involved compared to parsers that go on to finish the entire document or load it all into memory.
    #2: Extend Serializable and write your own readObject/writeObject methods. Place the encrypt/decrypt in there as appropriate. That will "hide" the implementation and should be what any persistence manager can deal with.
    Regards,
    antarti

  • How to load a config file at appliaction startup

    Hi
    Is there a way to load a config file at application startup?
    I have the DB conection info in a config file.
    Right now m accessing that info by loading it using a classloader n then parsing it.
    When ever i access the DB this file is loaded n parsed.
    I want it to be loaded only once at startup n get cached.
    Then later on whenever i refer it, i shud get the cached copy.
    Is there a way to do this?

    Or you could just include a relevant static block.
    For instance you could have a utility class for accessing your DB in which you wrap jdbc code for querying, updating etc. This class would have code like the following:
    public class DBBean {
       private static DataSource ds = null;
       static {
          loadDataSource();
       public static loadDataSource() {
          // load your property file with the configuration info and setup your datasource
       public static void doSomething() {
          Connection con = ds.getConnection();
    }By placing initialization code in a public (?) method you can call this method to re-initialize your DataSource if e.g. you updated your datasource settings.
    Hope this helps

  • Applescript oe shellscript to delete config file?

    Hi All,
    pls suggest how do i delete config file with permissions, with my scripts .cfg file is not deleting. I tried with applescript and shell script both, but its not working.. and also its not asking for permissions as well..
    tell application "System Events"
        delete  file "/Library/Application Support/Macromedia/abc.cfg"
    end tell
    do shell script "rm -f /Library/Application Support/Macromedia/abc.cfg"

    If you use 'do shell script' you'll need to escape the spaces in path, either by quoting the entire path, or by using backslashes:
    do shell script "rm -f '/Library/Application Support/Macromedia/abc.cfg'"
    The 'pure' AppleScript solution likely doesn't work because System Events isn't used to handling files. Try asking the Finder to delete the file instead.
    Of course, both methods assume you have sufficient privileges.

  • Urgent: UWL XML Config file

    Hi all!
    I copied the business object EXTSRV to ZEXTSRV and created a new method zprocess that is mainly a copy of the Process method of the EXTSRV BO just that the creation part of the url is diffirent. I kept the call_browser function.
    Then, I assigned this method to a task in the workflow this task is copy of the standard task TS50000075. I added the itemtype to the UWL XML config file and uploaded it to the system successfuly then i cleared the cash.
    When i double click on the item in the UWL it partially works. I see the text written in the task but it is supposed to pop up a window. This window doesn't appear.
    Can anyone help with that?
    Thank you in advance,
    Hajar

    Hi
    Just check this out Please do not forget to give points
    User Roles     Restricts who can get work items via the user role. For example, you can assign a portal role here, such as buyer. Only users with the role buyer will see items from the provider system in UWL.You can have multiple user roles separated by semi-colon. By specifying user roles for the portal users, it can be restricted as to who gets the work items in UWL.  For example, you can assign a portal role to a user, such as buyer.  Only users with the role buyer will see items from a system, for example, B7QCLNT000 in UWL.
    Pull Channel Delta Refresh Period (in Seconds)     Delta Pull mechanism of UWL enables new items to be fetched from the back end SAP systems every minute by default every 60 seconds, and every 30 seconds for alerts. However, this can be configured. The user does not need to use the refresh function to update the inbox. Once items are retrieved, timestamps are updated for the users whose items are successfully retrieved. These retrieved items are updated in the UWL cache. Setup necessary from Business Workflow to enable Delta Pull MechanismSome configuration settings are required if you use the UWL and the Extended Notifications for SAP Business Workflow. Define the following two batch jobs:...&#9679;      Background job (for example UWL_DELTA_PULL_1), consisting of a single step of ABAP report RSWNUWLSEL in FULL mode, using a report variant.Run the job once a day.1.     &#9679;      A background job (for example UWL_DELTA_PULL_2), consisting of a single step of ABAP report RSWNUWLSEL in DELTA mode (default mode is delta, so report variant is optional).Run the job every one to three minutes (depending on the performance of the back end SAP system).Setup necessary from UWL to enable Delta Pull Mechanism The UWL service user in portal, with user id uwl_service, has to be granted access to the corresponding back end systems. This is a predefined service user provided by UWL. When the back end system is configured in the UWL administration page, an automated process is triggered to create a corresponding UWL service user in the back end system.Check role assignments and profiles status of this automated generated UWL service user and perform user comparison if necessary.&#9679;      If SAPLogon ticket is used (without using user mapping), you first create the system entry. A message about uwl_service user appears. Then in the back-end system give the uwl_service user an initial password. Now edit the system entry.&#9679;      If user mapping is used, you can first configure the back end system in the UWL administration page. Then access the respective back end system to initialize the password for the user uwl_service. Then, do user mapping in the portal as usual for service user uwl_service.In case uwl_service fails to be created in the back end and does not exist, you can manually create a back end user with the id uwl_service and assign the role SAP_BC_UWL_SERVICE and the rights as other end users.ORMap uwl_service to an existing back end user. Make sure that there is no multiple user mapping (there must not be two portal users mapped to the same back end user). This back end user must have the role SAP_BC_UWL_SERVICE.
    Snapshot Refresh Period (in minutes)     All items at the current time are fetched from the backend (for example from the SAP Business Workflow). The cache is synchronized thereafter. New / modified / deleted / updated items are fetched every session (every log on) if you leave the field value empty or enter a negative number.To specify a particular time frame for which the refresh occurs, enter the number of minutes
    The above registration procedure is usually sufficient to use a UWL iView. Item type retrieval and registration requires a connection to the systems and may take a couple of minutes.
    For each system, they are generated as the configuration named uwl.webflow.<system_alias> or uwl.alert.<system_alias>.
    In Manager Self-Service (MSS), the Universal Worklist groups together in Workset: Work
    Overview the various workflow tasks and alerts that are relevant for a manager.
    The standard MSS delivery includes the configuration file com.sap.pct.erp.mss.001.xml for the universal worklist.
    1. In the portal, choose System Administration &#8594;&#61472;System Configuration &#8594;&#61472;Universal
    Worklist and Workflow &#8594;&#61472;Universal Worklist &#8594;&#61472;UWL Systems Configuration.
    2. Create the following system connections:
    If you have already registered a suitable connector to the system connected to
    the system alias, the existing connector is sufficient and you do not have to
    register an additional one.
    &#9675; System alias: SAP_ECC_Financials
    Connection types:
    &#9632; WebFlowConnector
    &#9632; AlertConnector
    &#9675; System alias: SAP_ECC_HumanResources
    Connection type WebFlowConnector
    &#9675; System alias: SAP_SRM
    Connection type WebFlowConnector
    Leave the Web Dynpro Launch System field blank for all system connections.
    with regards
    subrato

  • Startup class cannot find a config file.

    I have written a startup class to configure log4j in Weblogic.
    The class runs but cannot find the configuration file. The
    code for the startup class is as follows....
    package com.n2bb.ams.common.util;
    import java.io.FileInputStream;
    import java.io.File;
    import java.io.IOException;
    import java.net.URL;
    import java.util.Properties;
    import com.n2bb.ams.common.util.FileLocator;
    import org.apache.log4j.xml.DOMConfigurator;
    * Insert the type's description here.
    * Creation date: (12/5/00 11:12:13 AM)
    * @author: Administrator
    public class ApplicationStartUp implements weblogic.common.T3StartupDef {
         * ApplicationStartUp constructor comment.
         public ApplicationStartUp() {
              super();
         * setServices method comment.
         public void setServices(weblogic.common.T3ServicesDef arg1) {
         * startup method comment.
         public String startup(String arg1, java.util.Hashtable arg2) throws Exception {
              String resource = null;
              try {
                   resource = (String) arg2.get("configFileName");
                   System.out.println("ConfigFileName: " + resource);
                   URL configFileResource = ApplicationStartUp.class.getResource(resource);
                   System.out.println("configFileResource: " + configFileResource.toString());
                   String file = configFileResource.getFile();     
                   DOMConfigurator.configure(file);
                   return "Log4j configuration initialized completed.";          
              } catch (Exception e) {
                   System.out.println("Cannot open config file: " + resource);
                   return "Log4j configuration failed to initialized.";
    The section of the config.xml the calls my startup class looks
    like....
    <StartupClass
    Arguments="configFileName=/bea/user_projects/mydomain/log4j-config.xml"
    ClassName="com.n2bb.ams.common.util.ApplicationStartUp"
    Name="AMS Startup Class" Targets="myserver"/>
    I have tested the code in a standalone class and it works fine.
    Why can't I find the log4j-config.xml file? Any help would be
    greatly appreciated.

    Wow, your system must have a long history of having picked up assorted bad stuff ...
    You have CleanMyMac2, which should definitely be removed.
    You have other stuff (MacCleanse, for example) that I don't have first-hand knowledge about but should very likely be removed.
    You are using Google Chrome which is a resource hog.
    Further, your Adobe Flash player is not current.
    If I had all these issues, I would do a clean install of Yosemite and only reintroduce the essential stuff.
    You can search for the .plist files by opening finder, holding down the Option key, and doing Go > Library from Finder's menu and then searching for the file(s).

  • How to use a config file?

    People,
    i have a basic question. How to extract the contents from a ".config" file?
    I have a config file with few sections and few global variables defined.
    how to extract these data; or how to use this file?
    a sample .config file, that i have is,
    # global variables
    pageTitle = "Main Menu"
    bodyBgColor = #000000
    tableBgColor = #000000
    rowBgColor = #00ff00
    [Customer]
    pageTitle = "Customer Info"
    [Login]
    pageTitle = "Login"
    focus = "username"
    Intro = """This is a value that spans more
    than one line. you must enclose
                   it in triple quotes."""
    # hidden section
    [.Database]
    host=my.domain.com
    db=ADDRESSBOOK
    user=php-user
    pass=foobar
    How would i extract these data; or how to utilize this file first of all?
    - Kumar
    [ [email protected] ]

    Hi Kumar,
    Instead of .config file you can use .properties file. Place the configuration part in that file. Use ResourceBundle class. This class have methods like getResourceString(String key) which reads the .properties file and returns a String as it's Value. I normally use the same. I have written one class for it. C if you can use it. The keys are case sensitive. initialize is a directory in which i am keeping my Config.properties file.
    import java.util.*;
    import java.text.*;
    import java.net.*;
    import javax.swing.*;
    public class ReadConfig
    public static ResourceBundle resources;
    * This is responsible for getting data from Config.properties for setting properties externally.
    static
    try
    resources = ResourceBundle.getBundle("initialize.Config", Locale.getDefault());
    catch (MissingResourceException mre)
    JOptionPane.showMessageDialog(new JFrame(), "initialize/Config.properties not found.\n Please report it to administrator.");
    System.err.println("initialize/Config.properties not found");
    System.exit(1);
    }//static
    public ReadConfig()
    System.out.println(getResourceString("DatabaseName"));
    System.out.println(getResourceString("JDBCDriver"));
    System.out.println(getResourceString("DSN"));
    System.out.println(getResourceString("ConnectionString"));
    }//constructor
    public String[] tokenize(String input)
    Vector v = new Vector();
    StringTokenizer t = new StringTokenizer(input);
    String cmd[];
    while (t.hasMoreTokens())
    v.addElement(t.nextToken());
    cmd = new String[v.size()];
    for (int i = 0; i < cmd.length; i++)
    cmd[i] = (String) v.elementAt(i);
    return cmd;
    * A method takes string as parameter and reference of ResourceBundle.
    * It is used with <b>Resources Bundle</b> i.e. with .properties file.
    * When value of particular string from .properties file has to retrive.
    public String getResourceString(String nm, ResourceBundle resources)
    String str;
    try
    str = resources.getString(nm);
    catch (MissingResourceException mre)
    str = null;
    return str;
    * A method takes string as parameter. It is used with <b>Resources Bundle
    * </b> i.e. with .properties file. When value of particular string from .properties
    * file has to retrive.
    public static String getResourceString(String nm)
    String str;
    try
    str = resources.getString(nm.trim());
    catch (MissingResourceException mre)
    str = null;
    return str;
    }//getResourceString(String nm)
    * This method takes string as parameter and returns corresponding <b>URL</b>.
    * If key is <b>null</b>, then will return <b>null</b>.
    public URL getResource(String key)
    String name = getResourceString(key);
    if (name != null)
    URL url = this.getClass().getResource(name);
    return url;
         return null;
    }//getResource(String key)
    public static void main(String[] args)
    new ReadConfig();
    }//main
    }//class
    Hope this will be helpful to you.
    Kind Regards
    Sandeep

  • Dashboards web service config file set up

    I am new to dashboards and want to understand, how do we make a web service connection to the dashboard?
    We previously had the web services set up and never got a chance to set it up, but now there is a need to set it up in our own machines.
    The issue exactly being faced right now is:
    we tried setting up the web service config file and it works when we execute it ( i.e. I get a URL) but it comes as
    http://localhost:2910/QueryService.asmx
    which we tried using as  " http://localhost:2910/QueryService.asmx?wsdl " in the dashboard connection manager and i am able to get the methods (runSQLQuery etc).
    When trying to see the dashboard in the bo Infoview, we get the below error:
    To access external data, add a Cross Domain policy file  to the external data web server.
    Please help me in understanding the issue and significance of all these things.
    Any help would be appreciated.
    Thanks,
    Khushboo

    First of all change localhost to proper host name or IP address in connection.
    You need to place crossdomain policy file in the root of the web server. Please check this for details:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40c58930-c78f-2f10-cf82-8b90999065cc?overridelayout=t…
    http://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html

  • I was infected by a virus and this changed proxy config to 127.0.0.1:64727, i removed the virus, but every time i start firefox i find the proxy configuration made by the virus.is there any config file i can change ?

    I was infected by a virus (i can't remember the virus name). Antivirus removed it, but i think it changed some config file on FF, 'cause every time i try to restart it , i find it configured to use proxy 127.0.0.1:64727. I change every time the config, i also tried to change the config on the about:config and set network.proxy.type 5 , no port and no network proxy (so it's all on default) . I changed the config on the gui, i removed the config from windows registry ( IE and chrome start normally, with no proxy), but every time i restart FF i find the proxy config there. How can i fix it ?

    I had the same problem.
    Solution
    '''Clear Virus First'''
    -clear virus using either anti-virus or manually going into task manager and figuring out which processes are bad.
    -If the manual way, go through each process in task manager and right click to "open file location". Depending on where it is located and the name of the process, you can google the process name online to see if it is bad.
    -Delete the bad process file and as added security, create a folder using the name of the process so the file can't be recreated later. (example: If I had a virus "3dcr.exe" in folder c:\user, then delete "3dcr.exe" and create a new folder c:\user\3dcr.exe\ )
    '''Fix Proxy Settings'''
    -If your browser points an proxy server and you can't change the settings because every restart of firefox returns the settings back (even after changing in about:config or prefs.js or options>advanced>network>settings). The answer is to uninstall firefox with all its user preferences and the reinstall it.
    *I know it is a bit brute force, but it was the only method I found to work. Just be sure to save your bookmarks first.

  • Problem with reading config file

    Hello,
    I have problem with reading config file from the same dir as class is. Situation is:
    I have servlet which working with DB, and in confing file (config.pirms) are all info about connection (drivers, users, passw, etc.). Everything work fine if I hardcoded like:
    configFileName = "C:\\config.pirms";I need to avoid such hardcoding, I tryied to use:
    configFileName = Pirms.class.getClassLoader().getResourceAsStream ("/prj/config.pirms").toString();but it isn't work.
    My config file is in the same directory as Pirms.class (C:\apache-tomcat-5.5.17\webapps\ROOT\WEB-INF\classes\prj)
    Also I tryied BundledResources, it isn't work fo me also.
    Can anybody help me to solve this problem? with any examples or other stuff?
    Thanks in advance.
    Andrew

    Thanks, but I am getting error that "non-static method getServletConfig() cannot be referenced from a static context"
    Maybe is it possibility to use <init-param> into web.xml file like:
    <init-param>
      <param-name>configFile</param-name>
      <param-value>/prj/config.pirms</param-value>
    </init-param>If yes can anybody explain how to do that?
    I need to have that file for:
    FileReader readFile = new FileReader(configFile);Thanks in advance.

  • How can I ensure the integrity of my config files?

    I'm designing a system with some powerful features and I would like to make sure that the config files change only through my program. My concern is people running this on any of the Windows systems without a ACL. I was thinking of storing all the config files in Hsqldb and running them as virtual files through my program. This way I can encrypt the data, and enforce it easier through my program's ACL. I was also thinking of running a checksum on the data after any alterations and using this to compare whenever I read the data from there. I realize I can't physically stop someone from deleting the data who's in front of the machine but I'd like to make sure the integrity of my files is solid. I have reasons for designing it this way.

    DW will be much easier to learn if you spend a few days learning the basics first.  HTML and CSS are the ABC's and 123's of web design.  If you don't have a basic understanding of code and web terminology, DW will be an up-hill struggle for you.
    Start here:
    http://w3schools.com/
    Then work your way through this 6-part tutorial.
    Creating  your first web site in DW CS4 -
    http://www.adobe.com/devnet/dreamweaver/articles/first_cs4_website_pt1.html
    Best of luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Creation of one single config file for 100 packages

    Hello Everyone,
    I need to create a single config file for multiple packages. Is it possible to do it?
    Could you please let me know how can it be achieved?
    Regards,
    Chinni

    Its possible
    Depending on whether all packages contain same configuration items and names you can use any of below approaches
    1. If all package configuration items and names are same, you can point all packages to same config file and it will use values from file for all of them
    2.If packages have different set of conigurations, then one method is to use parent package (wrapper package) to call and execute all of them. Then define all configurations as variable values in parent and add a config file in it. Pass only required configurations
    to each of child packages by using parent package configuration method.
    http://www.sqlis.com/sqlis/post/Using-Parent-Package-Variables-in-Package-Configurations.aspx
    The parent package has to call child packages using execute package task
    Then change any of values in your config file for parent package and change gets reflected to child package property values.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Bouncy Castle Encryption for Large XML Files?

    Hi,
    I am trying to encrypt files > 8 KB using the KeyBasedLargeFileProcessor Utility class of Bouncy Castle.
    It's encrypting the file. But, unable to decrypt the same encrypted file. Hence it's encrypting incorrectly.
    While trying to decrypt the encrypted file, it says "It was encrypted with a key (4E616D65) that does not exist"
    Please suggest what change needs to be made in the 'encryptFile' method where it says -
    "OutputStream cOut = cPk.open(out, new byte[1 << 16]);"
    I tried changing the value, but it doesn't work. The maximum file size that we may encrypt is around 3 MB.
    The files that are being encrypted / decrypted are XML files.
    Any inputs are highly appreciated.
    Thanks,
    Tan

    While trying to decrypt the encrypted file, it says "It was encrypted with a key (4E616D65) that does not exist" So use the same key you encrypted with.
    Please suggest what change needs to be made in the 'encryptFile' method where it says -
    "OutputStream cOut = cPk.open(out, new byte[1 << 16]);" Do you have some evidence that that's where the problem is?

Maybe you are looking for