Decrypt Password File

Evening. I am totally new to security. after hours of reading about keys and de-enCryption I created this experiment class, that most is copy&paste from sun. All I need is a class that in a simple way decrypt an password file.
Am I even close to the best solution? Code below has two errors, both says "cant find symbol" when mouse over in NetBeans.
public class EnDeCrypt {
   static byte[] encodedAlgParams;
    public static KeyPair myKey()throws Exception{
        KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("PBE");
        keyPairGenerator.initialize(1024);
        KeyPair keyPair = keyPairGenerator.genKeyPair();
        return keyPair;
    public static void enCrypt() throws Exception{
        try {
            Cipher c = Cipher.getInstance("PBEWithMD5AndDES");
            c.init(Cipher.ENCRYPT_MODE, myKey());  // *1* <---mouse over c.init says "cant find symbol"
            byte[] cipherText = c.doFinal(text.getBytes());
            AlgorithmParameters algParams = c.getParameters();
            encodedAlgParams = algParams.getEncoded();
            } catch (NoSuchAlgorithmException ex) {
            Logger.getLogger(EnDeCrypt.class.getName()).log(Level.SEVERE, null, ex);
            } catch (NoSuchPaddingException ex) {
            Logger.getLogger(EnDeCrypt.class.getName()).log(Level.SEVERE, null, ex);
    public static void deCrypt(String text) throws Exception {
        AlgorithmParameters algParams;
        algParams =  AlgorithmParameters.getInstance("PBEWithMD5AndDES");
        algParams.init(encodedAlgParams);
        Cipher c = Cipher.getInstance("PBEWithMD5AndDES");
        c.init(Cipher.DECRYPT_MODE, myKey, algParams);// *2*<-- mouse over myKey() says, "cant find this symbol"
{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

MagnusT76 wrote:
As i mention before this is new for me. Obviously.
I used the code below. Which simply hashes a password+salt, checks the hash against what is expected and then stores it. No 'decryption' involved.
And when I open the password file it shows alot of numbers and letters.And what makes you believe that these 'numbers and letters' in any way represent the 'decrypted' password?
>
public void storePassword(String password){
String hashed = BCrypt.hashpw(password, BCrypt.gensalt());
if (BCrypt.checkpw(password, hashed)){
FileHandler.setPasswd(hashed);
} else {
        failLogin("Error saving you password");
}Stop guessing. Start reading. Expect to find that you can't 'decrypt' the hashed passwords.
Bye

Similar Messages

  • Help needed in encrypting and decrypting a file

    Hello,
    I just started looking into the Java Security.I need to encrypt a file using any popular alogrithm like RSA or DES and write it to disk.and again decrypt this file at a later time when needed.
    I was checking out with different ways of doing so,but found it difficult to persist the key some where.
    Could some one help me in this regard,with a tutorial or a sample program where I will be able to give cleartext file as an input and get a ciphered text file as output and vice versa?

    Probably the simplest solution is to use password-based encryption (PBE). See http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html#PBEEx
    for an example.

  • 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.

  • Formatting the encrypted hard drive or intalling OS again with PXE boot can change TPM owner password file?

    Hello,
    1) I realized that when MBAM bitlocker encryption start both Recovery key and TPM owner password file are send to MBAM server. If we change the computername of the notebook, we can find out Recovery key from MBAM server with the KeyID as we can read it from
    computer screen, but we can not find out TPM owner password file with the existing new computername information from MBAM server, so we have to know old names of all computers but it is impossible. So we have to do decryption and clearing TPM than we
    can again encrypted it with its new name. is it right?
    2) We will going to deploy mbam encryption to our notebooks. But sometimes when a person quit the job his notebook can given to another person or new employee and based to our procedure when a notebook will given to another user it should installed
    OS again with PXE boot. I would to know will it be enough to installing with this method again with a diffrent computer name or should I firstly clear its TPM than install OS with PXE to keep TPM owner password file missing as item 1?
    I hope i can explain what i mean :)
    Regards,
    SibelM

    I would suggest you to first decrypt the laptop and then follow the process:-
    - Clear the TPM
    - Encrypt the type.
    - Check for the encryption behavior.
    Cause I have found on some model that if the OS drive is encrypted, PXE boot fail on that machine even though I also did a direct PXE on an encrypted machine with clearing the TPM.
    TPM ownership password is a hash file that gets generated with a set of algorithm. SO each time when you PXE boot, by clearing the TPM, the TPM hash password for the TPM will change. This has been done for security measures.  
    Gaurav Ranjan

  • Encrypt/Decrypt pdf files in adobe air applications

    Hi Friends
    I want to encrypt and decrypt pdf files in adobe air application. I tried it many ways but am not getting it right method.
    Please help me this situation.

    AFAIK, Adobe Acrobat has features to add security to pdf file, but as for decrypt pdf files, you need to give the password. For example, Adobe Acrobat 9 standard.  Decrypting pdf seems not the issue of acrobat. You can find proper version of Acrobat to encrypt your file, whereas decrypt pdf document, you need to turn to a pdf password removing program to achieve that.

  • Seeing a lot of ERROR - could not decrypt password Given final block not...

    What cause these error messages in DPS 6.x?
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:56 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:56 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:56 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:56 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:56 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:56 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:56 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:56 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded
    [18/Apr/2009:23:05:57 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded

    You have copied a DPS configuration (conf.ldif) from one instance to another one.
    Passwords are encrypted in the conf.ldif with an instance-specific key.
    2 ways to address the problem:
    - either
    stop the proxy, manually edit the conf.ldif and replace encrypted values (prefixed by {3DES})
    with the value in clear.
    DPS will encrypt them again during next startup.
    - or
    copy the dps keystore files (in alias if I remember well) to the target dps instance as the keystore
    contains the encryption key.

  • Getting Error while decrypt a file using Blowfish algorithm

    I am using blowfish algorithm for encrypt and decrypt my file. this is my code for encrypting decrypting .
    while i am running program i am getting an Exception
    Exception in thread "main" javax.crypto.BadPaddingException: Given final block not properly padded
    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(DashoA12275)
    at Blowfishexe.main(Blowfishexe.java:65)
    import java.security.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.io.*;
    import org.bouncycastle.crypto.CryptoException;
    import org.bouncycastle.crypto.KeyGenerationParameters;
    import org.bouncycastle.crypto.engines.DESedeEngine;
    import org.bouncycastle.crypto.generators.DESedeKeyGenerator;
    import org.bouncycastle.crypto.modes.CBCBlockCipher;
    import org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher;
    import org.bouncycastle.crypto.params.DESedeParameters;
    import org.bouncycastle.crypto.params.KeyParameter;
    import org.bouncycastle.util.encoders.Hex;
    public class Blowfishexe {
    public static void main(String[] args) throws Exception {
    KeyGenerator kgen = KeyGenerator.getInstance("Blowfish");
              kgen.init(128);
              String keyfile="C:\\Encryption\\BlowfishKey.dat";
    SecretKey skey = kgen.generateKey();
    byte[] raw = skey.getEncoded();
    SecretKeySpec skeySpec = new SecretKeySpec(raw, "Blowfish");
              System.out.println("key"+raw);
                   byte[] keyBytes = skey.getEncoded();
                   byte[] keyhex = Hex.encode(keyBytes);
                   BufferedOutputStream keystream =
    new BufferedOutputStream(new FileOutputStream(keyfile));
                        keystream.write(keyhex, 0, keyhex.length);
    keystream.flush();
    keystream.close();
    Cipher cipher = Cipher.getInstance("Blowfish");
    cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
              System.out.println("secretKey"+skeySpec);
    FileOutputStream fos=new FileOutputStream("C:\\Encryption\\credit11.txt");
              BufferedReader br=new BufferedReader(new FileReader("C:\\Encryption\\credit.txt"));
              String text=null;
              byte[] plainText=null;
              byte[] cipherText=null;
              while((text=br.readLine())!=null)
              System.out.println(text);
              plainText = text.getBytes();
              cipherText = cipher.doFinal(plainText);
              fos.write(cipherText);
              br.close();
              fos.close();
              cipher.init(Cipher.DECRYPT_MODE, skeySpec);
              FileOutputStream fos1=new FileOutputStream("C:\\Encryption\\BlowfishOutput.txt");
              BufferedReader br1=new BufferedReader(new FileReader("C:\\Encryption\\credit11.txt"));
              String text1=null;
              /*while((text1=br1.readLine())!=null)
                   System.out.println("text is"+text1);
                   plainText=text1.getBytes("UTF8");
                   cipherText=cipher.doFinal(plainText);
                   fos1.write(cipherText);
              br1.close();
              fos1.close();
    //byte[] encrypted = cipher.doFinal("This is just an example".getBytes());
              //System.out.println("encrypted value"+encrypted);*/
    Any one pls tell me how to slove my problem
    thanks in advance

    hi
    i got the solution. its working now
    but blowfish key ranges from 56 to448
    while i am writing the code as
    KeyGenerator keyGenerator = KeyGenerator.getInstance("Blowfish");
    keyGenerator.init(448);
    this code is generating the key upto 448 bits
    but coming to encoding or decode section key length is not accepting
    cipher.init(Cipher.ENCRYPT_MODE, key);
    Exception in thread "main" java.security.InvalidKeyException: Illegal key size or default parameters
    at javax.crypto.Cipher.a(DashoA12275)
    at javax.crypto.Cipher.a(DashoA12275)
    at javax.crypto.Cipher.a(DashoA12275)
    at javax.crypto.Cipher.init(DashoA12275)
    at javax.crypto.Cipher.init(DashoA12275)
    at Blowfish1.main(Blowfish1.java:46)
    i am getting this error
    what is the solution for this type of exception.
    thank you

  • How to change the default password file's name and path when the database created?

    how to change the default password file's name and path when the database created?
    null

    Usage: orapwd file=<fname> password=<password> entries=<users>
    where
    file - name of password file (mand),
    password - password for SYS and INTERNAL (mand),
    entries - maximum number of distinct DBA and OPERs (opt),
    There are no spaces around the equal-to (=) character.

  • How to change default location of password file ?

    Hi all,
    Can i change the location of my password file from default to any other user defined location ?
    If yes then how ?
    Thanx in advance.
    Deep

    Dad you moved here?
    Can i change the location of my password file ?

  • How do i find the location of Oracle password file in the HDD

    we giv the location of the password file while we use the orapwd command to create one.
    later if we forget the location of the password file (incase it is not at the default location) then is there a way to find it or do we just create a new password file?
    secondly, for oracle to use the password file we giv the remote_login_passwordfile='EXCLUSIVE' in the parameter file. wat tells oracle the location of the exact password file??
    Thanks
    Arvind
    Edited by: iinfi on Sep 29, 2008 12:15 AM

    The default location are OS dependant.
    On Unix/Linus it is under $ORACLE_HOME/dbs
    On Windows, it is under %ORACLE_HOME%/database
    To change the default location, nothing inside database, but :
    On Unix/Linux, you have to create a symbolic link for that file to the target location
    On Windows, you have to change env variable (regedit) ORA_PWFILE and ORA_SID_PWFILE
    So, you have to check this setting for the real password file location.
    Nicolas.

  • Configuring password file in oracle 10g

    Hi
    Can anyone here guide me to the steps to be followed in configuring password file.
    I am learning cloning using RMAN. For that purpose I need to configure password file at first.
    I created the password file using orapwd utility.
    and then made the required changes in tnsnames.ora and listener.ora files. Reloaded listener.
    Set SQLNET.AUTHENTICATION_SERVICES = (NONE) in the sqlnet.ora file
    Made the changes required in the initialization parameter file for the duplicate database instance.
    Next, export ORACLE_SID= <DUPLICATE DATABASE NAME>
    CREATE SPFILE FROM PFILE
    STARTUP FORCE NOMOUNT;
    rman TARGET sys/password@target-tnsname AUXILIARY sys/password@duplicate-tnsname
    At this stage, I get the below error.
    RMAN-00554  initialization of  internal recovery manager package  failed
    RMAN- 04006  error from auxiliary  database:  ORA- 01031 :  Insufficient privileges

    userark160 wrote:
    rman TARGET sys/password@target-tnsname AUXILIARY sys/password@duplicate-tnsname
    At this stage, I get the below error.
    RMAN-00554  initialization of  internal recovery manager package  failed
    RMAN- 04006  error from auxiliary  database:  ORA- 01031 :  Insufficient privileges
    Are the Auxiliary and Target databases on the same machine?
    Can you also check the parameter Local_Listener for Auxiliary Database?
    Regards,
    Z.K.

  • Is it possible to decrypt EFS files without backup certificate- windows xp,vista,win-7,win8

    hi,
    i have windows xp and and i did the  format c:\  without take any EFS certificate backup ,is it possible to decrypt efs files without backup certificate , i have lot off files like Microsoft office and pdf , how can i recover the file and decrypt
    Any software to decrypt the files , mostly word and excel files , any solution please let me know as soon ad possible.
    Thx
    PV

    PV
    If you formatted the entire "C" drive (Format C:\) then you don't need to decrypt them but rather recover them.  Recovery is somewhat doubtful but one application you can try is called recuva. 
    You will not recover 100% of the files and may not recover any
    http://www.piriform.com/recuva
    Wanikiya and Dyami--Team Zigzag

  • Use of password file?

    good day !
    i am confused and still cannot digest the need to use a password file!
    can anyone provide me with links or any explaination on why we need a password file!
    i need the password file so that i can setup dataguard!
    thnx

    You can Oralce administration guide,
    Database Administrator Authentication
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/dba.htm#i1006534

  • Error opening password file

    Hi, I'm traying to start up a database in sqlplus on SuSE 8.2 and Ora9.2, I have the next error:
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> startup pfile=/opt/ora9/admin/pavilion/pfile/initmydb.ora
    ORACLE instance started.
    Total System Global Area 101781824 bytes
    Fixed Size 450880 bytes
    Variable Size 83886080 bytes
    Database Buffers 16777216 bytes
    Redo Buffers 667648 bytes
    ORA-01990: error opening password file '/opt/ora9/product/9.2/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    My password file is /opt/ora9/product/9.2/dbs/orapwmydb
    How can I use my orapwmydb file?

    Hi Marco,
    as far as I know, you have to use the REMOTE_LOGIN_PASSWORDFILE = SHARED option in your init...ora file.
    In this case you have one password file for one or more databases. It can only have the entries for SYS and INTERAL.
    I'm sorry to cannot answer your question of having different password files for different databases %-)
    Klaus

  • [HELP] ORA-01990 Error opening password file '/home/oracle/OraHome1/dbs/ora

    Dear All,
    I have changed the PWD file on oracle 9.2.04 under linux redhat advance server 2.1. but when i start to open database by issuing dbstart, i get
    ORA-01990: Error opening password file '/home/oracle/OraHome1/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2 : no such file or directory
    additional information: 3
    How to solve the problems?
    thanks and regard
    ER

    Hai all...
    I did it all..
    but still I got
    ORA-01990: Error opening password file '/home/oracle/OraHome1/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2 : no such file or directory
    additional information: 3
    Help me...
    Thanks
    regard
    ER

Maybe you are looking for