Why the encryption text is changeable in an applet?

I 'am write an applet using BlowfishKey encryption algorithism in SDK1.4.1 ,
but the encryted result is changeable referring the same unencrypted
text.when I minimize the blowser and reopen it ,the encrpted result
changes.and when in an application ,the result is not change. I want to
know why?
Thanks

This question make no sense but I will try a guess. Applets have the init(),
start(), stop(), destroy() methods which get called at various states of
the applets life cycle. Is it possible that the encryption process is being
executed in one of these methods or from one of these methods? If so every
time you maximize/minimize your browser the encryption process is being
rerun. Now the ciphertext output would be different because of several
possible reasons.
1) You are using an algorithm that requires an IV such as CBC mode and that
IV is being generated randomly each time the encryption is being performed.
2) You are generating the SecretKey each time you do an encryption. Thus the
key used to encrypt the data is different each time.
Those are jsut some guesses but it seems to fit what I could decern of your
question.

Similar Messages

  • Why the incomming text messages and notifications are not popping up on the homescreen?

    Lately,  When I receive a text message, the homescreen turns on, but the message appears about one minute after. Anybody having the same issue?? Any suggestions?  Thank u

    Hi, SandraVM.
    I would recommend closing any open applications in multitasking and restarting the device.  If unfamiliar with multitasking, I have included a screenshot on how to process an application close.  Test the results after processing these steps.
    If the issue persists, I have attached two articles that will walk your through some troubleshooting steps. 
    iOS: Understanding Notifications
    http://support.apple.com/kb/HT3576
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Cheers,
    Jason H. 

  • How do you get rid of the encrypted text when forwarding an email to somebody

    When forwarding an email to others it comes up like this. Can I get rid rid of this
    Return-Path: <[email protected]>
    Received-Spf: pass (domain of insideapple.apple.com designates 17.254.6.227 as permitted sender)
    X-Ymailisg: W7LWasUWLDvp3Cg68NzuIQ0Ep5ImO4cFdWjwTQdjltqL3QAf gD3Lr..KHbkfZ_CEjNYmy.ZOOVWmbG2a9ON5_4ijshqlqQm.jegCy2LxGi1w Wa4mNROcNgpAuIfLj5DPHALQE.x5PePw4PRG4.mg_Bvr.1Zp9yJnwNkZhmbo vrzFzdamoL37v3UZU3Lb1oSt9YBWjCeJHymCV.VX_rR2FAgFu3.vxzanr3WS 3gFTlxNl8_RcTm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cSVtYfnBBravEwY_79Eks5nS61xG2gVLgrgUgf0DUWhN2R5H Fne9_eIL7ZXbnlT8X121Gnu2YIBixj356ZyUNsrjWhrtdG2sUZNWQUOczdqH q0devPqLTmN3TEoXHR07Ai.oxum4ZpBuTD9xxOQoTjfDA4Qdld1vT_MusOcw jUdrEKN9P35wFrP3wB03ybHlwzwwD4OKoiEZnys9Pu.3nkoR8w--

    Do exactly what it implies on the screen.  Connect the device to the computer via the sync cable and let iTunes restore it.

  • Why the html file doesn't change with applet ?

    i am new to java , i get a problem when i am modifying a applet . i recompile it to .class file but did not change its name . and the .html file which use the applet doesn't change with it , it still shows the original style , even when i delete the .class file . it works until i changed the name of the source file and use the different .class file in html . it's troublesome if i need to modify the source file because i must change the name to get it . can you tell me why and how could i avoid this ?

    I am new also & had a similar experience.
    In my case it was aftercompiling and trying to refresh the browser to get it to display the new version of my applet. I got around this by holding Ctrl down and pressing F5 to refresh.
    Also, some of the systems at university cause exactly the problem you describe. Not sure why it should work but we overcame it by placing our files in the JDK folder on those systems & it worked properly. May be worth a try.

  • Cannot decrypt RSA encrypted text : due to : input too large for RSA cipher

    Hi,
    I am in a fix trying to decrypt this RSA encrypted String ... plzz help
    I have the encrypted text as a String.
    This is what I do to decrypt it using the Private key
    - Determine the block size of the Cipher object
    - Get the array of bytes from the String
    - Find out how many block sized partitions I have in the array
    - Encrypt the exact block sized partitions using update() method
    - Ok, now its easy to find out how many bytes remain (using % operator)
    - If the remaining bytes is 0 then simply call the 'doFinal()'
    i.e. the one which returns an array of bytes and takes no args
    - If the remaining bytes is not zero then call the
    'doFinal(byte [] input, int offset, in inputLen)' method for the
    bytes which actually remained
    However, this doesnt work. This is making me go really crazy.
    Can anyone point out whats wrong ? Plzz
    Here is the (childish) code
    Cipher rsaDecipher = null;
    //The initialization stuff for rsaDecipher
    //The rsaDecipher Cipher is using 256 bit keys
    //I havent specified anything regarding padding
    //And, I am using BouncyCastle
    String encryptedString;
    // read in the string from the network
    // this string is encrypted using an RSA public key generated earlier
    // I have to decrypt this string using the corresponding Private key
    byte [] input = encryptedString.getBytes();
    int blockSize = rsaDecipher.getBlockSize();
    int outputSize = rsaDecipher.getOutputSize(blockSize);
    byte [] output = new byte[outputSize];
    int numBlockSizedPartitions = input.length / blockSize;
    int numRemainingBytes = input.length % blockSize;
    boolean hasRemainingBytes = false;
    if (numRemainingBytes > 0)
      hasRemainingBytes = true;
    int offset = 0;
    int inputLen = blockSize;
    StringBuffer buf = new StringBuffer();
    for (int i = 0; i < numBlockSizedPartitions; i++) {
      output = rsaDecipher.update(input, offset, blockSize);
      offset += blockSize;
      buf.append(new String(output));
    if (hasRemainingBytes) {
      //This is excatly where I get the "input too large for RSA cipher"
      //Which is suffixed with ArrayIndexOutofBounds
      output = rsaDecipher.doFinal(input,offset,numRemainingBytes);
    } else {
      output = rsaDecipher.doFinal();
    buf.append(new String(output));
    //After having reached till here, will it be wrong if I assumed that I
    //have the properly decrypted string ???

    Hi,
    I am in a fix trying to decrypt this RSA encrypted
    String ... plzz helpYou're already broken at this point.
    Repeat after me: ciphertext CANNOT be safely represented as a String. Strings have internal structure - if you hand ciphertext to the new String(byte[]) constructor, it will eat your ciphertext and leave you with garbage. Said garbage will fail to decrypt in a variety of puzzling fashions.
    If you want to transmit ciphertext as a String, you need to use something like Base64 to encode the raw bytes. Then, on the receiving side, you must Base64-DEcode back into bytes, and then decrypt the resulting byte[].
    Second - using RSA as a general-purpose cipher is a bad idea. Don't do that. It's slow (on the order of 100x slower than the slowest symmetric cipher). It has a HUGE block size (governed by the keysize). And it's subject to attack if used as a stream-cipher (IIRC - I can no longer find the reference for that, so take it with a grain of salt...) Standard practice is to use RSA only to encrypt a generated key for some symmetric algorithm (like, say, AES), and use that key as a session-key.
    At any rate - the code you posted is broken before you get to this line:byte [] input = encryptedString.getBytes();Go back to the encrypting and and make it stop treating your ciphertext as a String.
    Grant

  • How to display an encrypted Text

    I am using TDES to encrypt a plain text using the command:
    Cipher c = Cipher.getInstance(this.txtAlgorithm.getText().toString());
    c.init(Cipher.ENCRYPT_MODE,sKey);
    byte[] tmpcipherTest = this.txtOriginalText.getText().toString().getBytes();
    byte[] cipherText = c.doFinal(tmpcipherTest);
    The encrypted text is put in cipherText which is an array of byte. However, when I want to display the cipher using cipherText.toString(); the function just give me something wrong that I cannot use that String to put back to the decipher routine.
    When I add a watch on the cipherText, it gives out some item in the array as a negative value. So is there anything wrong? But if I just put the cipherText in byte form back to the decipher function, it gives back the original text (in byte form).
    Can any on help?

    cipherText is an array, and arrays use the default toString method, which shows the class name and hash code.
    I have no idea how the encryption you're library works, but it's not surprising that it might put negative values in the byte array.
    What do you want to do with the cipherText exactly? If it's decryptable, it's usable. Are you trying to transmit it over a connection of some kind, or print it to text so it can be used as some kind of security token, or something?

  • Why is the small text blurry on photoshop?

    why is the small text blurry on photoshop? i am **** a very small advert for a newspaper! and the text is printing blurry and when zoomed in is appearing all blurry? how do i stop this i only have photoshop and indesign

    c.pfaffenbichler schrieb:
    If a vector is intact, no flattening has been done. I don't talk about PDF layers, they are a complete different thing. When flattening is done no form or text survives as live vector or live text.
    The pdf is X-1, so there are no Layers or transparencies in it, but the text is searchable still.
    So I guess you are correct in that no flattening has happened, rather Photohop embedded two images in the pdf and clipped the one with the type.
    Exaclty, whe a pDF X1 or 3 is created transparency is flattened and here it can come to unwanted rasterizing of vectors.
    How will you create the correct boxes for bleed and crop in Photoshop?
    For a newspaper add those will probably be irrelevant as bleed is hardly necessary.
    Not at all, it is much easier to assamble files in a greater layout if all boxes are correct.
    You know it good enough that this is not the right tool for that task?
    Indesign is definitely the preferable tool for the task at hand, but claiming Photoshop cannot output type except pixelated was not proper.
    I think in a forum we should not support the use of wrong tools but we have to show the best way to do things correct.
    And there are also problems which cannot avoided with higher knowledge like coloured black (not in this ad). Yes, you an me we are capable to shift around the known problems with ads created in Photoshop, but others don't know these problems and will crash.

  • Why can't I use the original texts?

    I'm not quite sure why, but as im editing my new videos, the new text options are only available. I can no longer use the text that was provided in the older version of iMovie. Can someone please tell me why???

    Website address?
    If Flash is required to use the app on the website, Flash is not supported with iOS devices and Adobe recently announced they will no longer be supporting Flash with any mobile device.

  • After saving a htaccess file, why the text is on one line

    hello all,
    I am a webmaster and some time I have to setup a htaccess file (.txt file)When I edit it with Textedith, I make a modification and I save it. Nothing works.
    When I open the same file with a PC, all the text is in one line. of course it will not work.
    Can some one tell me why the file is not saved in the format when I open it, so it saved in one line?

    TextEdit isn't the best choice for editing configuration files, since it doesn't use Unix line endings -
    I thought TextEdit did use Unix line endings (LF). The reason it is all one line on a PC is that PC's do not, and thus will only display new lines if line endings are Windows format (CR + LF).
    I don't think there should be any problem editing config files with TextEdit, but TextWranger is better, and it also easily handles file names that begin with a dot.

  • When I select text, system wide, and delete it, why is the succeeding text then selected?

    When I select text, system wide, and delete it, why is the succeeding text then selected?
    This doesn't happen all the time, but it's happened enough for me to notice it and get super annoyed by it.
    Here's an example. If I have the following text:
    The quick brown fox jumps over the lazy dog.
    And I highlight quick brown and then press delete, I get: (The red shows the selected text)
    The fox jumps over the lazy dog.
    So when I then start typing, more text is removed than I want. Sometimes this effect carries over, so that the next couple words are selected once I start typing.
    It's wonderfully annoying. So I was wondering if anyone else was experiencing such issues or if anyone might have an idea on how to get rid of this problem.
    Thanks.

    Ooops. I haven't updated my sig in a while. I'm on 10.8.2 and it happens on a late 2008 Alu Macbook.

  • How to compare the texted password with the encrypted password of dba_users

    Hi,
    I have Oracle 10g in my system. I know dba_users table has information of all the created users of the oracle, along with their encrypted passwords.If I want to make a login page based on this table ,how could I compare the password in that case?
    In above situation, I am getting the username with the regular texted password for authentication check. How can we checked this texted password with the encrypted password of dba_users, for the respective username?
    Your input would be appreciated.

    Try use the username/password from login page to create an connection to database.

  • On the iPhone, why do some texts show up in blue and some in green?

    Dumb question.. Why do some texts show up in blue and some in green on the iPhone?

    Not dumb at all. The blue ones are iMessages, while the green ones are regular text messages.
    Regards,
    Leann

  • "Internal Goods/Services" make the text-description changeable

    Hi SRM-gurus,
    we'd like to make the TEXT description and the price changeable when adding an item (with mat.number) to shopping cart via "Internal Goods/Services". The price and the text which have been replicated from the backend should be changeable.
    So far in the old R/3 system users were able to enter the material-number and then change the suggested description e.g. from "motor 12345" into "Repair motor 12345".
    Is this possible?
    Thanks for your help.
    Best regards,
    Henning

    Hello Henning,
    It sounds like you should use a Described Requirement.  However, with what you stated about change the text, it almost sounds like a Service Master implementation.  I saysing this because the Motor 12345 sound like a Material Master item but Report Motor 12345 sounds like a Service Master item.
    We do not use Service Masters and so utilize the Describe Requirement.
    I hope this helps.
    Regards, Dean.

  • Why am I seeing my daughter's contacts only on my MB (synced I assume from her iPhone) and why does my text messaging on the MB all viewed like she is receiving them?  Even on my phone, a message I sent to myself as a test shows up as "mom"

    Why are my daughter's contacts the only one showing up on my MB and why do all text messages now, including on the MB and my iPhone show up now as if she's receiving them, even when they are sent to me based on her contact list?

    It's called iMessage, new in iOS 5.0...these messages are going as iMessages, and as designed, they appear on all of your iOS devices(your Apple ID on your daughter's phone). Either turn iMessage off on your daughter's phone or get her her own Apple ID & wipe her phone & then setup it up again using her own Apple ID. Your daughter having her own Apple ID is recommended if you want to fully take advantage of iCloud, FaceTime, iMessage, etc. She can still use your iTunes account.

  • Why when I text sometimes the bubble is blue and other times it's green

    why when I text sometimes the bubble is blue and other times it's green

    Blue indicates it was sent as an iMessage, green was sent as Text message (SMS)
    http://www.apple.com/ca/ios/messages/

Maybe you are looking for

  • Safari crashes with EXC_BAD_ACCESS (SIGSEGV) Exception Type

    Hi -  Looking for some help! After I updated to OS X 10.8.3, Safari will not open, but immediately crashes with the following exception type: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 I have

  • Problem with Content Barrier

    I just wanted to post my experience with IChat AV and problems with Content Barrier. After a long time with Support, I deleted Content Barrier from the startup folder and everything works fine now. I will give an update when I get IChat AV to work wi

  • Fireworks CS3 Batch unresponsive (Intel Mac)

    Hi all, I just bought an Intel Mac and CS3 with Fireworks. I batch processed several photos last night. Then when I went to batch process a second group, I got the eternal spinning beachball. ;) I had to force quit Fireworks. Batch Processing refuses

  • Ipod boom box's and 2.0 software systems ?

    My ipod is running 1.0 software and i just purchased an ifun boom box for my ipod and it needs to be running 2.0 software .Can i upgrade a 2gb nano to 2.0 and where can i download it ?

  • Why do the electrical adapters for Apple mobile devices always develop a crack in the wire casing?

    Almost every Apple mobile adapter I've had must be replaced after a year or so. You'd think that if they can create such brilliant products, they could supply us with a durable cord which cannot cause shocks or shorts.  I've spent hundreds on replace