Can I get fixed length output after encryption using PBEwithMD5andDES?

Hi,
I am currently using "PBEWITHMD5ANDDES" algorithm to encrypt the string and later it is encoded using BASE64. I need to store the value in Database so I need output to be of fixed size. Currently output depends on the input string length. My input string can vary in length.
I cannot use Message digest for storing it database as I need to decode too.
Sonal

You can't possibly have a fixed encrypted output size regardless of the input size and be able to recover the original. Just think about it for a bit. This would enable infinite compression.
PBEWITHMD5ANDDES uses PKCS5 padding and so produces an output which is (n+8)/8 blocks of 8 bytes so 1,2,3 ... 7 become 8 bytes, 8,9,10 ... 15 become 16 bytes etc etc etc.

Similar Messages

  • Facebook is not loading properly and all my text and images are lined up along the right side of the page. How can this get fixed to the way it use to be?

    Facebook is not loading properly and all my text and images are lined up along the right side of the page. How can this get fixed to the way it use to look?
    Everyone who logs into Facebook on my Firefox has this problem however if we use Internet Explorer - facebook looks normal.

    If you have increased the minimum font size then try the default setting "none" as a high value can cause issues like you described.
    * Tools > Options > Content : Fonts & Colors > Advanced > Minimum Font Size (none)
    *Tools > Options > Content : Fonts & Colors > Advanced > [X] "Allow pages to choose their own fonts, instead of my selections above"

  • How can I get the length of a sequence using script

    I am trying to get the length of an image sequence that was imported using importOptions.sequence.  I need to check that the length is a correct number, and if it is too short/long it gives an error message.
    Is there a way to do this?
    Thanks

    //Assumes that your clip is the first item in your project
    var a = app.project.item(1).duration;     //Returns clip length in seconds
    var b = app.project.item(1).frameDuration     //Returns a single frame length in seconds
    var c = a/b;     //If you divide the clip duration by the frameDuration, you should get clip length in frames

  • I can not get itunes to open after I have downloaded it and closed it and tried to get bck into it

    I can't get itunes to open after i download it.  I close it to come back to it and it won't open or anything like it wasn't downloaded at all. Help please

    The file that I'm have issues with in itunes is the file called iTunes Libary.itl. 
    So just to get itunes to open I had to delete that file and then sync all of my music back into itunesday, is there anyway so I do not have to keep doing that?

  • I can't get imovie to open after trying to shift the image to my TV by clicking fn F3.  If I hold the mouse on the imovie icon for a few seconds the imovie window opens but if I click anywhere on the window it disappears

    I can't get imovie to open after trying to shift the image from my macbook pro to the tv screen like I have done many times before.  If I double click on the imovie icon, imovie doesn't open, but the strip across the top shows iMovie, file, edit , clip, view, text share window help tabs across the top.  The iMovie window will appear if I click on the iMovie icon on the dock for a few seconds, or if I do control F3 at the same time, but when I click on the window it disappears.  When I hover the mouse over the iMovie window that appears the window has a blue border around it.  when I move the mouse outside the iMovie window the blue border goes away.  If I sweep 4 fingers from the top of the screen down, the screen dims a little but the iMovie window doesn't appear. If I click play under the view tab I can hear audio, but still no iMovie window.  It's as if the window is being blocked by the desk top somehow.

    Similar issues here.
    I purchased five movies for download and having nothing but problems getting them downloaded. I keep receiving error messages and the download stops and I have to restart it, just to get another minute worth of download with each restart. Now Apple has my money and I have nothing.

  • I have an hp office jet 4500 and os maverick 10.9.4 and I can't get it to print after last upgrade, multiple malfunctions and error, help?

    I have an hp office jet 4500 and os maverick 10.9.4 and I can’t get it to print after last upgrade, multiple malfunctions and error, help? I have tried deleting and resetting printer and re-installing update 6 times. Last update attempt showed none available??? I can’t load the software directly from HP because their only option is to use the software update option on the mac....frustrated!!! Help!!
    I get blank pages that just run through the printer and a stats window that just 33% complete and goes no further.

    I am going on the guess that an old driver is still installed...
    Use Finder Go > go to folder, and go to /Library/Printers and delete the HP folder(s).
    Reset the Printing System:
    OS X Mavericks: Reset the printing system
    Now, Add the printer in Print & Scan prefs.

  • Can you get your photos back after the iphone does a restore

    Can you get your photos back after the iphone does a restore?

    Actually, wrong.
    The tech support people can help with Playbook purchased apps. If you've called and they said they cannot, you were lied to.
    Even in the link you posted, in #10, it states clearly "App Refund related matters are handled by BlackBerry Customer Care." That, my friend is accessed by the support number. Again, if you were told otherwise, you should inform them of such or ask for a manage/supervisor.
    And, you don't have a "Partner ID" because you are not a "Partner". The section you're referring to applies to mobile providers, which are the Partners.
    Good luck.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How can you get a calendar back after deleting it

    How can you get a calendar back after deleting it

    You will have to restore the device from a backup on icloud.  (this assumes you have backups turned on in settings>icloud)
    http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US
    Go to Settings>General>Reset and tap Erase All Content and Settings.  This will erase your device.  Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.

  • How can i get back my data after i restored my iphone and accidentally created a new iphone ac.

    how can i get back my data after i restored my iphone and accidentally created a new iphone ac.
    it did a back up when i started my restored iphone and i cant retrieve my previous backup while i didnt back up on icloud....
    the new ac is actually the same apple id as the one i used. I lost all my contact, photos and data of whatsapp...
    what can i do...help!

    I don't know if this is a similar problem but I wrote 2 notes yesterday on my iphone. I opened my mail to print them and they appeared as notes but wouldn't load. Then I looked at them on my iphone and I could see the notes but they quickly updated to blank with a time of the last edit the same time I tried opening them on my computer.
    Yesterday I updated to 4.3.4  I don't know if somehow that affected them. Are they stored somewhere else. Can I get them back?

  • Hi, may i know how can i get all data back after update ios 6

    Hi,
    May i know how can i get all data back after update ios 6 and all my data lost ?

    You can restore the phone and when prompted to restore choose from icloud account. BUT MAKE SURE there is 1.) an icloud backup for your phone. 2.) you are using the same apple id.
    apl

  • How can I get my texts back after IOS update?

    How can I get my texts back after an IOS update?

    Hi Clembo60,
    Welcome to the Apple Support Communities!
    I understand that your text messages are missing after an update on your iPhone. If you have a backup of your device on either iTunes or iCloud, you can restore from that backup and bring your information back. Please review the attached article, which covers how to back up and restore from backups, for more information. 
    Back up and restore your iPhone, iPad, or iPod touch using iCloud or iTunes - Apple Support
    Best regards,
    Joe

  • Can't get icloud to restore after crash from ios 8.1 update, says server not avaible, any suggestions?

    Had ipad2 crash during ios 8.1 update, tried different things to make it work, ended up booting as new.  Tried on a couple different days to restore from clould and it says server  not avaible, would love to get the info back, any suggestions?

    Can someone tell me the implications of using the command RESET DATABASE on my system days after I did the open reset logs? I opened the database with the ALTER DATABASE OPEN RESETLOGS in SQL not RMAN and I see the below note.....
    Re: Can't get dataguard to recover after SAN crash.
    To reset the incarnation of the target database in the RMAN repository, which means to do either of the following actions:
    •Inform RMAN that the SQL statement ALTER DATABASE OPEN RESETLOGS has been executed and that a new incarnation of the target database has been created. Note that if you run the RMAN command ALTER DATABASE OPEN RESETLOGS (not the SQL statement with the same keywords), then RMAN resets the target database automatically so that you do not have to run RESET DATABASE. By resetting the database, RMAN considers the new incarnation as the current incarnation of the database.

  • I've downloaded itunes 12.0.1.26 3 times after the update and it still doesnt work! Everytime i start it up it comes up not responding, why is this happening? how can it be fixed? I currently cannot use itunes!!!!!!

    I've downloaded iTunes 12.0.1.26 3 times after the update and it still doesn't work! Every time i start it up it comes up not responding, why is this happening? how can it be fixed? I currently cannot use iTunes!!!!!!

    Hey High Socks,
    Thanks for the question. If I understand correctly, iTunes isn't working when you try to launch it. I would recommend that you read this article, it may be able to help you isolate or resolve the issue.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues - Apple Support
    Thanks for using Apple Support Communities.
    Have a great day,
    Mario

  • Can't get iMovie to play after recorded on disk

    Can't get iMovie to play after recorded on dvd

    Hi ..
    Better to post your topic in the iMovie community >  iMovie for Mac: iLife: Apple Support Communities

  • I can't get it to open after download. Get message "the item referred to by this shortcut cannot be accessed. You may not have the appropriate permissions."

    I can't get Firefox to open after I download it. I don't understand why I am getting the error message I am getting. I am the only user of the PC- what does I don;t have appropriate permissions mean or why do I get it?

    Ok. seems like I am in bigger problem than what i thought..So i did what you asked me and here is the log from the scan
    Malwarebytes Anti-Malware (Trial) 1.62.0.1300
    www.malwarebytes.org
    Database version: v2012.07.25.04
    Windows 7 Service Pack 1 x64 NTFS
    Internet Explorer 9.0.8112.16421
    [administrator
    Protection: Enabled
    7/25/2012 8:34:03 PM
    mbam-log-2012-07-25 (20-42-53).txt
    Scan type: Quick scan
    Scan options enabled: Memory | Startup | Registry | File System | Heuristics/Extra | Heuristics/Shuriken | PUP | PUM
    Scan options disabled: P2P
    Objects scanned: 239337
    Time elapsed: 7 minute(s), 52 second(s)
    Memory Processes Detected: 0
    (No malicious items detected)
    Memory Modules Detected: 0
    (No malicious items detected)
    Registry Keys Detected: 1
    HKLM\SOFTWARE\Google\chrome\Extensions\fdloijijlkoblmigdofommgnheckmaki (PUP.Funmoods) -> No action taken.
    Registry Values Detected: 0
    (No malicious items detected)
    Registry Data Items Detected: 0
    (No malicious items detected)
    Folders Detected: 0
    (No malicious items detected)
    Files Detected: 3
    C:\Users\mer\Downloads\7zip_Setup.exe (PUP.Bundle.Installer.OI) -> No action taken.
    C:\Users\mer\Downloads\Setup.exe (PUP.Bundle.Installer.OI) -> No action taken.
    C:\Users\mer\Downloads\SoftonicDownloader_for_mkv-player.exe (PUP.ToolbarDownloader) -> No action taken.
    So I removed everything and did the restart but still didn't work, the I used Microsoft Security Essentials and find this one: TrojanDownloader:ASX/Wimad.DS and the alert level was severe so I removed too and the problem was still there even after restarting the computer, Now I am kinda lost and I dont Know what to do.

Maybe you are looking for

  • CO_TXT_CHANNEL_PASSWORD_ERROR

    Hi experts. I have an interface SOAP to Proxy, but the message processed in PI doesn't arrive in Proxy R3. The sxi_monitor in R3 side, doesn't have message. The sxi_monitor in PI side, appear the message below:   <?xml version="1.0" encoding="UTF-8"

  • Poblem with FTP

    Hello, Can anyone help me with an ftp problem? I have a brand new T61 and I can not get any ftp program to work. I am currently using FileZilla which works just fine on another computer with the same os (Vista). I am using exactly the same settings o

  • Spl G/L "G" issue

    Hi Sap, I did my configuration for spl GL G gurantee received and paid in OBXR&OBYR as well i saw that in OBXS and OBXT and even i assigned my offsetting a/c for SAG in FBKA But when i post either from F-38 or F-55 system saying "Balancing filed Prof

  • Skip performing Sync Event (1) conversation id (null)

    <b>trying to modify a values and the row is deleted and new row inserted with the old values with different syncKey </b> [20070828 04:04:57:421] D [MI/Sync                  ] Initial buffer size of BinaryReader is 2628 [20070828 04:04:57:421] P [MI/S

  • Log in WLC 5508

    Hello. Someone knows what does it mean this log in the wlc 5508 with 7.5 IOS version: *apfMsConnTask_5: Oct 25 12:07:04.880: #APF-4-RCV_ACTION_FRM_WITH_CODE: apf_80211k.c:643 Received Action frame with code 4 from mobile station 4C:8D:79:CF:9B:53 Bec