DECRYPT THE FILE DOWNLOADED

Hi Friends,
  I have a small issue to share with you.
      My program fetches the payment file which is of .TXT, before that it was encrypted using external operating command, the command name is YDBCRYPT and the Operating system LINUX.
           Now i need to decrypt the file to view the data how it can be done.
quick answer can be given points.
Advance thanks,
Chandra.

Hi,
You cannot decrypt w/o knowing the encryption logic.
I believe you'll have to get the decryption logic from people who sent it to you and then implement it in report.
This report will first read it then decrypt it and then you can proceed for other processing.
Alternatively you can create a shell script in your own system with the decryption logic that should be provided to you and then after decrypting you can use this file.
Hope this clears the doubt
Regards
Nishant

Similar Messages

  • I install firfox in my new pc but i dont know in this pc when i am trying to download videos from you tube the file download but size is 0kb i try many ways but

    i install firefox in my new pc but in this pc when i try to download video from youtube the file downloaded is in 0 kb i try many application or addons but cant get success but the same application or addons work in my previous pc i have windows 7
    the extension are Flash Video Downloader
    MP4 downloader
    and the 1 Click Youtube Downloader
    and the other option showing in addons is VLC Player also all the applications and firefox are updated this is the information i have and beside this if you have any other information required please contact me on my given email id

    I use Video Downloadhelper with YouTube. It works well.

  • FireFox 4 and earlier versions will not install on my Windows Vista, 64 bit computer. The file downloads and the file extracts but I never make it to the installation wizard.

    I have tried to download FireFox 4 and earlier versions from several different website, thinking the files might have gotten corrupted, and each time I download the file the exact same thing happens, the file downloads and the file gets extracted but when the extraction completes the small window dissappears and nothing else happens.
    My machine is a Windows Vista 64 bit system and I've tried downloading the file with my 32 and 64 bit Internet Explorer but nothing seems to work. Can someone help me please because I would love to be able to completely delete I.E.

    Hi, thanks for your Flash file info. Well you must have been doing it right, since all of your Flash files for IE and FF are correct.
    The SWF plugin for FF and the SWO for IE are also correct.
    You shouldn't be having any problems with Flash Player.
    What you can try is to turn off the hardware acceleration feature. Go to any video, like youtube and right click on the video and click on Settings. Display Settings is where you will UN check hardware acceleration.
    See if that helps. Let me know.
    Thanks,
    eidnolb

  • Change File Name In The "File Download" Dialog Box For Web Reports

    Hi All ,
    I followed the below note to change the "File Download" name.
    How To Change The File Name In The "File Download" Dialog Box For Web Reports? Doc ID: Note:418366.1
    However its not working. Has anyone tried this and works fine ?
    Basically I wanted to change the name "rwservlet" when a report is run in an
    excel format.
    Rajesh Alex
    Rajesh Alex

    Hello,
    Have you checked if a HTTP header "Content-disposition" is returned ?
    You can use ieHTTPHEaders for IE
    http://www.blunck.se/iehttpheaders/iehttpheaders.html
    and
    Live HTTP Headers for FireFox
    https://addons.mozilla.org/en-US/firefox/addon/3829
    Regards

  • The file download window keep coming up wheneven i...

    Wheneven i opened the skype, it will come out a file download asking me to open or save the index.html or chatwidget.html and recently skype require me to change password so after that i cant log in anymore because everytime i go inside if i click cancel in the file download window, the skype will go blank, or if opened the file then the log in page picture will appear in google chrome website which i still cant find a way to log in. Its not only Skype that i got this problem, even i opened other apps, the file download window will keep coming up too. 
    Solved!
    Go to Solution.
    Attachments:
    skype.png ‏148 KB

    What is the version of Internet Explorer installed on your computer?
    In Internet Explorer go to Help -> About Internet Explorer.
    Skype login screen is created using the index.html file, which is accessed using Internet Explorer components installed on your computer.
    P.S. Please, don’t say that you are not using Internet Explorer. This is irrelevant. Skype depends on Internet Explorer.

  • TS3212 I get the file download window and I push "run", but after it starts to install, I get a window that says that they was a problem with the installation and I need to check with the manufacturer of my software. WHat does that mean?

    I get to the file download window to install itunes and push run, but after it starts to install, it stops and I get an error message that installation can no continue and everything is uninstalled. It tells me to check with my software company to resolve. What does that mean?

    Repair your Apple software update.
    Go to START/ALL PROGRAMS/Apple Software Update. If it offers you a newer version of Apple Software Update, do it but Deselect any other software offered at the same time. Once done, try another iTunes install
    If you don't find ASU, go to Control Panel:
    START > CONTROL PANEL > Add n Remove Programs / highlight ASU and click CHANGE then REPAIR,

  • I cannot install the trial for Acrobat XI Pro. The file downloaded fine, but it does not open. What can I do?

    I cannot install the trial for Acrobat XI Pro. The file downloaded fine, but it does not open. What can I do?

    For Windows:
    http://trials2.adobe.com/AdobeProducts/APRO/11/win32/AcrobatPro_11_Web_WWMUI.exe
    For MAC:
    http://trials2.adobe.com/AdobeProducts/APRO/11/osx10/AcrobatPro_11_Web_WWMUI.dmg
    ACROBAT XI

  • I cannot download Mavericks. Every time the file download stops a message appears that says the file is damaged and cannot be used to install Mavericks. I delete the file, download again and the same message appears. What can I do?

    I cannot download Mavericks. Every time the file download stops a message appears that says the file is damaged and cannot be used to install Mavericks. I delete the file, download again and the same message appears. What can I do?

    I only have one video project that I ever published to iDisk. It didn't have any music or photo files attatched to it, just a few clips stitched together. I can play these clips right now in the Event Library (so I know the source files are on my computer), but strangely, under the Project Library, the project is not there. I'm almost certain that I didn't store the project on iDisk; I just completed the video and published it to iDisk (as a .mov file I think) for family to see. I've tried to figure out how to get iDisk to stop looking for this project to no avail.
    I don't know if others have experienced this, but if I click on any project and on the menu bar select Share --> Remove From --> Media Browser... it lists iPod, iPhone, iPad, tv, Computer and MobileMe. Why would MobileMe be an option here? This is the case for any video project I select. Didn't iLife '11 and/or OSX 10.8 remove all mention of MobileMe? I wonder if this is part of the problem too.
    Edit: I just removed every project I have from the Media Browser. Still no luck.

  • There seems to be a problem with the file download. For troubleshooting tips, please visit our customer support page

    There seems to be a problem with the file download. For troubleshooting tips, please visit our customer support page.

    Thank you for the update Dlawrenceusa.  I would recommend reviewing the installation logs for the updates that are failing to apply to determine the exact cause of the failure.  You can find details on how to locate and interpret the installation log files at Creative Cloud Help / Troubleshoot install issues with log files | CC.  You are welcome to post any specific error messages you discover to this discussion.

  • Urgent!!how to open the file download dialog box????

    Hi all,
    i'm using the browse button for the user to select the file
    and a submit button, which when cliked should open the file
    download dialog box asking for open or save.
    i searched for so many forums and websites and didn't get the
    solution yet.
    i'm using jsp.
    anyone have the jsp code for the same????
    will b more helpful if u send it to me.
    thanx in advance.

    Hi
    Use the Filedialog class.
    Let your button call a method wich contains the following Java code:
    FileDialog filedialog =
    new FileDialog( Frame1.this, "Open a File", FileDialog.LOAD );
    //witch calls this constructor: public FileDialog(Frame parent, String title, int mode)
    //use Filedialog.SAVE to save a file.
    filedialog.show();
    String filename = filedialog.getFile();//to display the name of the file
    String directoryname = filedialog.getDirectory();// to display the directory name

  • How can I change the file download time using Adobe Send? Adobe SendNow had a lot more options.

    How can I change the file download time using Adobe Send? Adobe SendNow had a lot more options.I don't see nay with Adobe Send.

    There isn't a feature in Adobe Send for setting and end-date for a file's availability. At any time, you can Unshare the file, however.

  • Where do I find the files downloaded with Firefox on my harddrive?

    Where are the downloaded files stored on my hard drive so I can access them?

    You can find the files downloaded with Firefox in '''Downloads''' folder.[Default]
    {for e.g. C:\Documents and Settings\User\My Documents\Downloads }
    OR
    On Downloads window , right click on the file and select '''Open Containing Folder'''.

  • When I open a pdf I there are Asian characters as the file downloads and I am always ask if I want to trust the source. What should I do?

    When I open a pdf I there are Asian characters as the file downloads and I am always ask if I want to trust the source. What should I do?

    What is your operating system?
    Can you provide a screenshot of what you see: https://forums.adobe.com/thread/1408375

  • Need to decrypt the file in windows 8 (VS 2012) and WP8.1(VS 2013).

    I am decrypting a file which is already encrypted and working fine android app
    I tried this code in Windows 8 using Visual Studio 2012.
      public string pw = "3x5FBNs!";
    public string AES_Decrypt(string input, string pass)
          SymmetricKeyAlgorithmProvider SAP = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesEcbPkcs7);
          CryptographicKey AES;
          HashAlgorithmProvider HAP = HashAlgorithmProvider.OpenAlgorithm(HashAlgorithmNames.Md5);
          CryptographicHash Hash_AES = HAP.CreateHash();
          string decrypted = "";
          try
            byte[] hash = new byte[32];
            Hash_AES.Append(CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(pass)));
            byte[] temp;
            CryptographicBuffer.CopyToByteArray(Hash_AES.GetValueAndReset(), out temp);
            Array.Copy(temp, 0, hash, 0, 16);
            Array.Copy(temp, 0, hash, 15, 16);
            AES = SAP.CreateSymmetricKey(CryptographicBuffer.CreateFromByteArray(hash));
            IBuffer Buffer = CryptographicBuffer.DecodeFromBase64String(input);
            byte[] Decrypted;
            CryptographicBuffer.CopyToByteArray(CryptographicEngine.Decrypt(AES, Buffer, null), out Decrypted);
            decrypted = System.Text.Encoding.UTF8.GetString(Decrypted, 0, Decrypted.Length);
            return decrypted;
          catch (Exception ex)
            return null;
    Its always through an error "Bad Data. (Exception from HRESULT: 0x80090005)"
    Here is the Android code which is using for decrypt the same file
    package com.enable;
    import java.io.BufferedReader;
    import java.io.ByteArrayOutputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.nio.charset.Charset;
    import java.security.Key;
    import java.security.spec.KeySpec;
    import javax.crypto.Cipher;
    import javax.crypto.SecretKey;
    import javax.crypto.SecretKeyFactory;
    import javax.crypto.spec.IvParameterSpec;
    import javax.crypto.spec.PBEKeySpec;
    import javax.crypto.spec.SecretKeySpec;
    import org.apache.commons.net.util.Base64;
    import com.enable.classes.Singleton;
    import com.enable.classes.XMLPullParserHandler;
    import com.enable.classes.XMLPullParserStringHandler;
    import android.annotation.SuppressLint;
    import android.app.AlertDialog;
    import android.app.ProgressDialog;
    import android.content.Context;
    import android.content.DialogInterface;
    import android.content.Intent;
    import android.content.SharedPreferences;
    import android.content.res.AssetManager;
    import android.os.AsyncTask;
    import android.os.Bundle;
    import android.os.Environment;
    import android.preference.PreferenceManager;
    import android.util.Log;
    import android.view.LayoutInflater;
    import android.view.Menu;
    import android.view.MenuItem;
    import android.view.View;
    import android.widget.CheckBox;
    import android.widget.FrameLayout;
    public class MainActivity extends DrawerActivity{//{//ActionBarActivity{//DrawerActivity{//{
    public final static String SETTINGS_FILE = "settings_e3.xml";
    public final static String SETTINGS_FILE_E = "settings.xml";
    private ProgressDialog progressDialog = null;
    CheckBox tncCheckBox;
    @SuppressLint("InflateParams")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    //setContentView(R.layout.activity_main);
    FrameLayout frameLayout = (FrameLayout)findViewById(R.id.content_frame);
       // inflate the custom activity layout
       LayoutInflater layoutInflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
       View activityView = layoutInflater.inflate(R.layout.activity_main, null,false);
       // add the custom layout of this activity to frame layout.
       frameLayout.addView(activityView);
       // now you can do all your other stuffs
       tncCheckBox = (CheckBox) findViewById(R.id.tncCheckBox);
       //continue if the file is available and the terms and conditions are checked
       SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(MainActivity.this);
       boolean checkedStatus = preferences.getBoolean("TnCAgreed", false);
       if(checkedStatus)
    new ParseAndLoadTask().execute();
       //load default settings
       boolean useDefaultSetting = preferences.getBoolean("useDefaultSettings", true);
       if(useDefaultSetting)
       SharedPreferences.Editor editor = preferences.edit();
    editor.putString("serverName", "Default 2Enable Server");
           editor.putString("hostIP", "192.168.1.199");
           editor.putInt("port", 21);
           editor.putString("username", "2Enable");
           editor.putString("password", "2En@ble2");
           editor.putBoolean("ftpCheck", false);
           editor.putBoolean("internetCheck", true);
           editor.commit();
    public void GetFTPDetails()
    Intent intent = new Intent(MainActivity.this, GetFTPDetailsActivity.class);
        startActivity(intent);
        finish();
    public void LoadTnC(View view) throws IOException {
    Intent intent = new Intent(MainActivity.this, TnCActivity.class);
            startActivity(intent);
            finish();
    public void LoadEssencePage(View view) throws IOException {
    Intent intent = new Intent(MainActivity.this, EssenceActivity.class);
             startActivity(intent);
             finish();
    /** Called when the user clicks the button 
    * @throws IOException */
        public void ProceedToLearningArea(View view) throws IOException {
            // Start a new thread that will download all the data
        if(tncCheckBox.isChecked())
        SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
        SharedPreferences.Editor editor = preferences.edit();
        editor.putBoolean("TnCAgreed", true);
        editor.commit();
        new ParseAndLoadTask().execute();
        else
        AlertDialog.Builder alertDialog = new AlertDialog.Builder(
                MainActivity.this);
                // Setting Dialog Message
                alertDialog.setTitle("Cannot Proceed");
                alertDialog.setMessage("Kindly read and accept the Terms and Conditions to Proceed.");
                alertDialog.setCancelable(false);
                // Setting Icon to Dialog
                // Setting OK Button
                alertDialog.setPositiveButton("OK",
                        new DialogInterface.OnClickListener() {
                            public void onClick(DialogInterface dialog,
                                    int id) {
                                dialog.cancel();
                alertDialog.show();
        private String convertStreamToString(InputStream is) {
       BufferedReader reader = new BufferedReader(new InputStreamReader(is));
       StringBuilder sb = new StringBuilder();
       String line = null;
       try {
           while ((line = reader.readLine()) != null) {
               sb.append(line + "\n");
       } catch (IOException e) {
           e.printStackTrace();
       } finally {
           try {
               is.close();
           } catch (IOException e) {
               e.printStackTrace();
       return sb.toString();
        private static Cipher getCipher(int mode) throws Exception {
           Cipher c = Cipher.getInstance("AES/CBC/PKCS5Padding");
           //a random Init. Vector. just for testing
           byte[] iv = "e675f725e675f725".getBytes("UTF-8");
           c.init(mode, generateKey(), new IvParameterSpec(iv));
           return c;
       private static String Decrypt(String encrypted) throws Exception {
           byte[] decodedValue = new Base64().decode(encrypted.getBytes("UTF-8")); // new BASE64Decoder().decodeBuffer(encrypted);
           Cipher c = getCipher(Cipher.DECRYPT_MODE);
           byte[] decValue = c.doFinal(decodedValue);
           return new String(decValue);
       private static Key generateKey() throws Exception {
           SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
           char[] password = "3x5FBNs!".toCharArray();
           byte[] salt = "S@1tS@1t".getBytes("UTF-8");
           KeySpec spec = new PBEKeySpec(password, salt, 65536, 128);
           SecretKey tmp = factory.generateSecret(spec);
           byte[] encoded = tmp.getEncoded();
           return new SecretKeySpec(encoded, "AES");
        private class ParseAndLoadTask extends AsyncTask<String, Void, Void> 
        protected void onPreExecute (){
           MainActivity.this.progressDialog = ProgressDialog.show(MainActivity.this, "Please Wait.", "Loading Data...", true, false);
            protected Void doInBackground(String... args) {
        try {
        //check if the settings.xml file is available
               File extStore = Environment.getExternalStorageDirectory();
    File myFile = new File(extStore.getAbsolutePath() + "/2Enable/"+SETTINGS_FILE_E);
    if(myFile.exists() && myFile.length()>0)
    FileInputStream fileInputStream = new FileInputStream(myFile);
    XMLPullParserStringHandler parser = new XMLPullParserStringHandler();
    String  data = convertStreamToString(fileInputStream);
        try 
    String decrypt = Decrypt(data);
    Singleton.setSettings(parser.parse(decrypt));
        catch (Exception e) 
    e.printStackTrace();
    else
    AssetManager assetManager = getBaseContext().getAssets();
                   InputStream fileInputStream = null;
                   fileInputStream = assetManager.open(SETTINGS_FILE_E);
    if(fileInputStream != null)
    XMLPullParserStringHandler parser = new XMLPullParserStringHandler();
    String Data = convertStreamToString(fileInputStream);
    String decrypt = null;
    try 
    decrypt = Decrypt(Data);
    Singleton.setSettings(parser.parse(decrypt));
    catch (Exception e) 
    // TODO Auto-generated catch block
    e.printStackTrace();
    } catch (IOException e) {
    e.printStackTrace();
    return null;
                //return "replace this with your data object";
            protected void onPostExecute(Void result) {
                if (MainActivity.this.progressDialog != null) 
                    MainActivity.this.progressDialog.dismiss();
                Intent intent = new Intent(MainActivity.this, LearningAreaActivity.class);
                startActivity(intent);
                finish();
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
    // Handle action bar item clicks here. The action bar will
    // automatically handle clicks on the Home/Up button, so long
    // as you specify a parent activity in AndroidManifest.xml.
    int id = item.getItemId();
    if (id == R.id.action_settings) {
    return true;
    return super.onOptionsItemSelected(item);
    sandeep chauhan

    Hi
    Please provide your issue so that we can understand where you are facing issue.
    For AES encryption please refer the msdn link
    https://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged(v=vs.110).aspx
    Regards
    Varun Ravindranath Please 'Mark as Answer' if my post answers your question and 'Vote as Helpful' if it helps you.

  • I cannot get the file download using 1.6

    Hi,
    I am using HTMLDB v1.6 and I have followed the example to upload and download files. I was able to get the file upload working but I am getting the page cannot be found error message. I am using a package to implement the page download can I do that? The URL I entered when I set the ID files is
    #OWNER#.JobManagement.Download_Submitted_File?p_file=#ID#.
    The URL Generated when I click on the download link is:
    http://aseera:7777/pls/htmldb/BFAYEZ.JobManagement.Download_Submitted_File?p_file=4.
    Anyone has any idea why the download is not working?
    Thanks,
    Bashar

    Sergio,
    I looked at the log files and I was able to figure out what was wrong. I changed my parameter name to p_job_id for the stored procedure but I used the p_file parameter name from the example. I also switched to use the package instead of the stored procedure and that worked too. The only thing I need to figure out is why the downloaded file name is packagename.ext for the file name.
    Thanks,
    Bashar

Maybe you are looking for

  • NWDS for PI 7.4 Dual stack

    Dear All I am on SAP PI 7.4 dual stack which NWDS version should i use because i tried with both NWDS 7.3 and NWDS 7.31 also NWDS 7.3 its not connecting at all it says improper configuration NWDS 7.31 connected to ESR and but ID it says only for sing

  • Error in cfqueryparam, when getting date field from cfpop

    Hi all, i'm taking data from cfpop to store them in the database. There are problems with date data: INSERT ..... POST_DATE = <cfqueryparam value="#date#" cfsqltype="cf_sql_timestamp"> But it fails in some situations, for instance: The cause of this

  • TS3212 Having trouble downloading iso5?

    I have tried everything downloading iso5. What can I do? On my general selection, there is no software update. Can't figure it oit. Help

  • Change name of tabstrips dynamically

    how can I change the name of tabstrips dynamically during runtime? Regards

  • Itunes u menu missing

    I have downloaded a couple of "iTunes U" sessions into iTunes.  But after syncing my nano G5, I don't see any menu for it. I checked in Settings->General->Main Menu and iTunes U is checked just like the others.  But when I go to the main menu, there'