Utility to generate the triple des (3DES) encrypted password in wl 6.1?
To take advantage of the encrypted passwords in config.xml, as of wl 6.1, is
there a weblogic utiltiy or api tha could be used to encrypt plaintext into
the triple-des symmetric key PRIOR to having an SA or DBA type it into the
console? This would help me greatly in the deployment and security of
passwords.
Thanks in Advance,
Steve Rogers
Hi,
Thank you for your question.
I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
Thank you for your understanding and support.
Best Regards,
Aiden
Aiden Cao
TechNet Community Support
Similar Messages
-
Triple DES CBC Encryption using an Initial Vector
How can triple DES encryption in CBC be done using the javacard package and not javax?
Will this do?
cipher3DESCBCDebSesKey1.init( key, Cipher.MODE_ENCRYPT, initVector, (short) 0, (short) 8);
cipher3DESCBCDebSesKey1.doFinal( input, (short) 0, (short) 16, SesKey, (short) 0 );
After all the initialization, will the doFinal already give me the result of triple DES using CBC? or do I have to init* and doFinal* three times?
Also, I used the no pad setting for this one.
cipher3DESCBCDebSesKey1 = Cipher.getInstance( Cipher.ALG_DES_CBC_NOPAD, false );The fact that only the first block is corrupt is indicative that I you are not using the same IV on both sides. This is confirmed by your PHP code that seems to generate a random IV so your chance of getting the same IV on both sides is just about zero.
-
Does Mail encrypt passwords?
Does Apple's Mail app encrypt passwords when getting mail?
It depends on which mail protocol you use to connect to your service provider. Mail supports all of the common protocols that encrypt passwords and data, but not all mail providers support encryption of passwords or data.
-
Horizon FLEX 1.1 - Question on Encryption Password
Hi all,
For my Horizon FLEX deployment, VMware Workstation 11 is used to create source VM. When the source VM is assigned to multiple users, it seems that the power-on passphrase (encryption password) will be the same for those users. Other than creating multiple source VMs with different encryption password, is there another workaround to achieve a similar result (different power-on passphrase for different users)?
Any idea, workaround and suggestion are welcome.
Thanks and regards,
Tony YeungHello at the moment the only option is to force the user to change the password after the first logon. Check the entitlement for that setting The tick box under the restrictions.
Keep in mind that you can upload a template only ones as an image. -
How to encrypt excel file data using triple DES algorithm in oracle
Hi,
I would like to know the process or script to encrypt/decrypt the excel file data using triple DES algorithm in oracle.I'm not quite sure your requirement.... do you mean when uploading files to be stored in the database ?
-
Read PKCS8 encrypted key with Triple DES
Hi, I have a RSA private key in a PKCS8 file, encrypted with Triple DES. I can obtain the RSA private key with the command:
openssl pkcs8 -inform der -v2 des3 -passin pass:mypass -in private.key > rsakey.key
Then I can read it in Java using bouncycastle classes:
Security.addProvider(new BouncyCastleProvider());
String file = "rsakey.key";
PEMReader pr = new PEMReader(new FileReader(file));
Object obj = pr.readObject();
KeyPair kp = (KeyPair) obj;
PrivateKey privateKey = kp.getPrivate();My question is:
How can I use the bouncycastle classes to replace the openssl command, So all the process stays in java.
Thanks in advance
RichThe class for this is javax.crypto.EncryptedPrivateKeyInfo but I seem to be having trouble getting it to work (I've posted about my problem in the Cryptography forum).
-
What's the problem on the DES PBE encryption
I've tried the to make a DES encryption by using my provided key
But it got the the following errors :
<pre>
Exception in thread "main" java.security.spec.InvalidKeySpecException: Inappropriate key specification
at com.sun.crypto.provider.DESKeyFactory.engineGenerateSecret(DashoA6275)
at javax.crypto.SecretKeyFactory.generateSecret(DashoA6275)
at t.main(t.java:37)
</pre>
<pre>
import java.security.*;
import javax.crypto.*;
import javax.crypto.spec.*;
public class t{
public static void main(String[] args) throws Exception{
char[] charArray = new char[5];
("mykey").getChars(0, 5, charArray, 0);
PBEKeySpec pbeKeySpec = new PBEKeySpec(charArray);
SecretKeyFactory keyFac = SecretKeyFactory.getInstance("DES");
SecretKey pbeKey = keyFac.generateSecret(pbeKeySpec);
Cipher pbeCipher = Cipher.getInstance("DES");
pbeCipher.init(Cipher.ENCRYPT_MODE, pbeKey);
// Our cleartext
byte[] cleartext = "This is another example".getBytes();
// Encrypt the cleartext
byte[] ciphertext = pbeCipher.doFinal(cleartext);
</pre>
Do anyone know how to solve it, thxJust a note: DES only has a 56-bit key so it's not consider secure enough these days (triple-DES is but it doesn't work directly with PBE)...
- Doug
javax.crypto.spec.PBEParameterSpec paramSpec
= new javax.crypto.spec.PBEParameterSpec( "mySalt".getBytes(), 1000 );
javax.crypto.spec.PBEKeySpec keySpec
= new javax.crypto.spec.PBEKeySpec("myPassword".toCharArray());
javax.crypto.SecretKeyFactory kf
= javax.crypto.SecretKeyFactory.getInstance("PBEWithMD5AndDES");
javax.crypto.SecretKey passwordKey = kf.generateSecret( keySpec );
javax.crypto.Cipher cipher
= javax.crypto.Cipher.getInstance("PBEWithMD5AndDES");
cipher.init(javax.crypto.Cipher.ENCRYPT_MODE, passwordKey, paramSpec);
// Our cleartext
byte[] cleartext = "This is another example".getBytes();
// Encrypt the cleartext
byte[] ciphertext = cipher.doFinal(cleartext);
System.out.println("Ciphertext is : " + new String(ciphertext)); -
I want to password protect an external dvd. I try using disc utility, but it won't format with encryption as it claims in the Help instructions. I am using Lion. Any ideas?
Using Disk Utility, I select the disc image that contains the data that I want to backup to a DVD and select Burn. The program asks that a blank DVD be inserted. When I do that, no format pop-up appears as is indicated in the Help instuctions. If I procede with the burn, there is no password protection. Before I converted to Lion, I used to use Disk Utility to burn backup DVDs without any problems.AFAIK, you create an encrypted disk image and burn that to DVD. There's nothing else to do, but I might be mistaken.
-
How to make all characters of a 3DES encrypted string printable
I am performing a triple DES on a string, and when I print out the encrypted data, it is 'chopping' off a character on the terminal.
For instance, I run the encrpytion ona string "blah", and print out the results:
java Test3Des blah
OUTPUT = ?$O4|
The problem here is that the string should have a "|" at the beginning of the output, not only the end. So I am not sure how I can 'pad' the output so that it can be saved to a file, and not remove characters around it in such a way that I can read it back in and decrypt to get "blah" back.
Thank you for the help....Your encrypted bytes have all the information you need, what you need is to convert those bytes with a Base64 encoding class before you print them to the output. You don't need to do this before writing to a file, but it is best as them you don't have any problems with the Unicode only behavior of some of the InputStream subclasses. You didn't mention any JCE provider, but BouncyCastle offers a Base64 class as part of their implementation.
Another caveat, make sure to always specify the formatting when making String objects and writing to a file, etc., etc. I prefer "UTF-8" for it. -
Decrypting PEM file using Triple DES
Hi all,
I am trying to decrypt a Triple DES encrypted RSAPrivateKey stored in PEM format in a file. How do I get the DES key to initialize the Cipher. I am using the following code to get the IV from the file and get the DES key using pass phrase. But I get the message
java.lang.SecurityException: Unsupported keysize or algorithm parameters
Can someone help me.
Thanks in advance,
Trilok.
// Gets the IV params from the RSAPrivate key PEM file.
// Uses the last 16 digits in this line to get the IV.
// DEK-Info: DES-EDE3-CBC,4A90C209D3A81791
private IvParameterSpec getIV(String s) { // here s = 4A90C209D3A81791
byte[] ivBytes = new byte[8];
for (int j=0; j<8; j++) {
ivBytes[j] = (byte)Integer.parseInt(s.substring(j*2, j*2 + 2), 16);
return new IvParameterSpec(ivBytes);
private SecretKeySpec getSecretKey(byte [] pwd, byte [] iv)
throws NoSuchAlgorithmException {
byte[] keyMat = new byte[24];
MessageDigest md = MessageDigest.getInstance("MD5");
md.update(pwd);
md.update(iv);
byte[] data = md.digest();
System.arraycopy(data, 0, keyMat, 0, 16);
md.update(data);
md.update(pwd);
md.update(iv);
data = md.digest();
System.arraycopy(data, 0, keyMat, 16, 8);
return new SecretKeySpec(keyMat, encAlg);
}Hi trilok,
Please let me know what JCE provider you are using for decrypting the Key.
Please make sure that you have made the static or dynamic registration properly.
For Static registration:
Please go to JAVA_HOME/jre/lib/security/java.security
Please edit
security.provider.1=sun.security.provider.Sun
For Dynamic Registration
Security.addProvider(new com.sun.crypto.provider.SunJCE());
Also please refer this URL, which is the third party provider which supports RSA.
http://www.bouncycastle.org/latest_releases.html
I hope this will help you.
Thanks
Bakrudeen
Technical Support Engineer
Sun MicroSystems Inc, India -
Single sign on using AES or Triple DES algorithm.
Hello all-
At my client place we have to setup a Single Sign On Functionality to an external system. The link will be on the portal page for the employees to click. This functioanlity has to be done by either AES (Advanced Encryption Algorithm) or Triple DES algorithm.
When the user clicks the SSO link on the portal page, the BSP application should implement any of these two above mentioned encryption algorithms and post the encrypted key appended to the third party URL. Then the third party system will decrypt and verify the user who is requesting the information and accordingly either allow or deny.
If anyone has any info on this please revert back.
Thank you very much for the help.
Ramesh.Hi Ramesh,
Did u get any clarification regarding Standard Triple DES algorithm.
If yes,Please let me know.
Thanks,
JOhny lever -
RBACx Encrypted Password Change Utility
Hi all,
In the OIA/SRM installation guide, there is a reference to a tool, to find out the password of rbacxservice.
"Oracle Identity Analytics utilizes an encrypted password when communicating with the database.
To change the default database password, use the RBACx Encrypted Password Change Utility"
Could you please help me finding out this tool.
Many thanks in advance.
Warm regards,
Manipradeep Sunku.The mentioned tool only encrypts the password so that you don't have to store a plain text password in the config file. It does not decrypt it. The default rbacxservice password is rbacxservice.
The tool does not come with the OIA/SRM distribution so if you need it, you will need to contact support. -
Decrypt the encrypted password
Hi there,
I have been scratching my head for some time to fix one issue. We are planning to change the plateform/technology and we need to bring over existing login to new system. In order to have the same password I need to decrypt the password before I send it to new system. When we stored the password, it encrypts them and stores it in database. I am using following code to decrypt it. it's not worlking . This is error I am getting.
Given final block not properly padded
Here is some more information:
Key is :javax.crypto.spec.SecretKeySpec@18f3a
Format is :RAW
getAlgorithm() is :DES
String encrypted = abcdefgh
Provider is: com.sun.crypto.provider.SunJCE()
This is my code to decrypt which throws error " Given final block not properly padded" :
public String decrypt(String encrypted){
Cipher ci = null;
byte [] result = null;
try {
ci = Cipher.getInstance("DES");
ci.init(Cipher.DECRYPT_MODE, key);
System.out.println("CryptoUtil()" +"before hexToByteArray. Byte Data: "+encrypted);
byte [] encryptedData = hexToByteArray(encrypted, false);
//Log.out("CryptoUtil()" +"after hexToByteArray. lenth: "+ encryptedData.length);
result = ci.doFinal(encryptedData);
catch (Exception e) {
System.out.println("CryptoUtil()" +"ERROR: "+ e.getMessage());
return encrypted;
String strResult = new String(result);
return strResult;
Please help.
Thank you.These are the two values I am getting for encrypted password:
97654de7857cd9aab331995cba044fc6
a125a6b2a71e23adc002ac7fbe1a1042
Is this a hex code?
I think the key is: abcdefgh
This is my code to encrypt and decrypt:
* empty constructor
* @param keydata
public CryptoUtil(String keydata){
if (keydata.trim().equals("")){
logDebug("CryptoUtil()" +" Constructor didn't get a valid key!");
usage();
System.exit(0);
}else{
keyBytes = keydata.getBytes();
key = new SecretKeySpec(keyBytes, 0, keyBytes.length, "DES");
try {
Provider sp = new com.sun.crypto.provider.SunJCE();
//logDebug("CryptoUtil() " + sp.getInfo());
Security.addProvider(sp);
}catch (Exception ex) {
logDebug("CryptoUtil() " +"Problem loading crypto provider \n error:"+ex.getMessage());
usage();
System.exit(0);
* Encrypt
* @param s
public String encrypt(String s){
Cipher ci = null;
byte [] result = null;
try {
ci = Cipher.getInstance("DES");
ci.init(Cipher.ENCRYPT_MODE, key);
result = ci.doFinal(s.getBytes());
}catch (Exception e) {
logDebug("CryptoUtil()" +"ERROR: "+ e.getMessage());
String strResult = byteArrayToHex(result);
return strResult;
* decrypt a card number
* @param encrypted
public String decrypt(String encrypted){
Cipher ci = null;
byte [] result = null;
try {
ci = Cipher.getInstance("DES");
ci.init(Cipher.DECRYPT_MODE, key);
//Log.out("CryptoUtil()" +"before hexToByteArray. Byte Data: "+encrypted);
byte [] encryptedData = hexToByteArray(encrypted, false);
//Log.out("CryptoUtil()" +"after hexToByteArray. lenth: "+ encryptedData.length);
result = ci.doFinal(encryptedData);
catch (Exception e) {
logError("CryptoUtil()" +"ERROR: "+ e.getMessage());
return encrypted;
String strResult = new String(result);
return strResult;
static final String hexDigitChars = "0123456789abcdef";
* @param a
public static final String byteArrayToHex(byte [] a) {
int hn, ln, cx;
StringBuffer buf = new StringBuffer(a.length * 2);
for(cx = 0; cx < a.length; cx++) {
hn = ((int)(a[cx]) & 0x00ff) / 16;
ln = ((int)(a[cx]) & 0x000f);
buf.append(hexDigitChars.charAt(hn));
buf.append(hexDigitChars.charAt(ln));
buf.append(' ');
return buf.toString();
* @param str
* @param rev
public static final byte [] hexToByteArray(String str, boolean rev) {
StringBuffer acc = new StringBuffer(str.length() + 1);
int cx, rp, ff, val;
char [] s = new char[str.length()];
str.toLowerCase().getChars(0, str.length(), s, 0);
for(cx = str.length() - 1, ff = 0; cx >= 0; cx--) {
if (hexDigitChars.indexOf(s[cx]) >= 0) {
acc.append(s[cx]);
ff++;
}else {
if ((ff % 2) > 0) acc.append('0');
ff = 0;
if ((ff % 2) > 0) acc.append('0');
byte [] ret = new byte[acc.length() / 2];
for(cx = 0, rp = ret.length - 1; cx < acc.length(); cx++, rp--) {
val = hexDigitChars.indexOf(acc.charAt(cx));
cx++;
val += 16 * hexDigitChars.indexOf(acc.charAt(cx));
ret[rp] = (byte)val;
if (rev) {
byte tmp;
int fx, bx;
for(fx = 0, bx = ret.length - 1; fx < (ret.length / 2); fx++, bx--) {
tmp = ret[bx];
ret[bx] = ret[fx];
ret[fx] = tmp;
return ret;
Will that give you any more information to help me? -
1809: An error has occured while generating a seccion key for encryption
Hi
I am trying to perform a remote control operation using Console One
1.3.6c, but evry thime getting the following error message
"1809: An error has occured while generating a seccion key for
encryption." I had looked for it in Novell site & found that the fix is
to upgrade to ZDF 6.5 SP1, but I am looking for a diffrent work around
for it. Please let me know is there any work around for this problem.
Regard
Kallol
kallolkallol,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
- Check all of the other support tools and options available at
http://support.novell.com.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://support.novell.com/forums)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://support.novell.com/forums/faq_general.html
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
Hi, I have a hard disk failure so to recover my data I am using disk utility to restore the data on an external drive while booting from a second external hard drive. When I perform the operation and after having selected both my destination and source drives, the operation begins but soon fails due to input/output error. If I try to create an image of the drive it gives me the same error message. Any help would be much appreciated.
Disk Utility only creates a image of the drive, so it's no help getting exactly what you want, which is your files. If the file structure is messed up or the drive is failing then it's no help.
If you have a external boot drive and you can't access the internal non-booting drive though the typical Finder and windows to transfer your files via drag and drop methods, then you need to install Data Rescue on the external boot drive and it will do as best as it can to recover your files. (works on non-encrypted/non-Filevaulted drives only)
.Create a data recovery/undelete external boot drive
Are you sure you have hard drive failure, or that OS X isn't merely not booting?
Because if the drive is working physically, then there is a host of fixes
..Step by Step to fix your Mac
https://discussions.apple.com/community/notebooks/macbook_pro?view=documents#/
Maybe you are looking for
-
Running a ProC program from Apps
Dear all , We have developed custom Pro C Program. It's a huge scheduling program which does somany calculations and prints the log in the Concurrent Program Log using Printf statement. Whenever we run this program from the Backend using telnet login
-
Hi All, I need help on a issue which users are facing in BEx Browser. I wasn't able to find any older threads for this issue, hence I have created this thread. After a user logs into the BEx Browser, the application crashes without any error messages
-
I need the silent install of firefox for image deployment.
-
IBook won't turn off completely?
I am new to Apple so please excuse me if this is a simple matter..... I find that even after shutting down my iBook there is still some residual power in there (the modem light remains on). This is curtailed by removing the power supply. However this
-
Hi, Might be one of those strange moments but I am convinced my picture isnt as good on the new box. I remember watching reruns off Lost and was amazed at the quality,and no they werent HD. Iplayer as well seems strange. Anyone else notice a differen