Encrypt message text friendly

I have a simple class to make encryption/decryption of string data using a cipher. However, when looking at the crypted text, it's all a bunch of cryptic characters:
Original string: Hello World!
Crypted string: ��?H?�s v���?
The algortihm i'm using is DES provided by javax.crypto. I need to store this text in some email message or other text container and i have problem with certains characters that are not well understood on another machine.
Is there a way to encrypt the string so that it is text friendly, i.e. that it use only letters and numbers to generate the crypted output?
Something like the MIME format.

Not much looked at the different algorithms, but to
what i see they all crypt with blocks of bytes and
don't matter in what range the generated bytes are. Cryptography converts streams of bits into other, essentially randomized, streams of bits. If your crypto is correct, there is no order or range-limitation on the ciphertext.
There must be a way to filter the outputted bytes so
that a call to encrypt with one of a such algorithm
would produce the needed result.Nope - not unless your enciphering algorithm is awful.
Another reason why i'm doing this is to pass encrypted
portions of url into a browser without falling into
illegal characters. I've implemented a way to do it by
converting the generated bytes into hex characters.
It's not much efficient, cause it takes 2 times the
original length of the string, but it works fine for
small strings.Base64 exists precisely to allow for the transfer of random binary data (like ciphertexts) through a text-only medium (like HTTP). The standard procedure is to encrypt- Base64encode - transport - receive - Base64decode - decrypt. Along the way, you can write out your Base64 data and read it, since by definition is consists only of readable characters.
It will, as floersh notes, enlarge your data by 4/3s along the way.
Good luck!
Grant

Similar Messages

  • IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend's

    IPAD3/IPAD2 :PDF files/ attachments  sent in an email  displayed inline ( embedded within the main email) in the message text on both my Ipad2 and Ipad three, however the same email displayed the PDF File icons/ attachment on both my Iphone and a friend’s PC. How do i get both my IPAD devices to display the PDF icons/attachments? Bearing in mind if i open the same email over the internet the PDF Icons/attachments display OK!
    Has anyone come across this? Your advice/help would be most appreciated

    This happens to me all the time.
    If is a one page PDF it seems as though it comes over already open and inline in the body of the email. Multiple page PDF files show as the PDF icon.
    I can't find any official documentation of this - other than based on my own experience with PDF attachments in my various email accounts.
    Message was edited by: Demo

  • How to make numbers in message text input  fields left aligned?

    Hi Friends
    I have completed one of my task .but getting result right side of the field.
    how to make numbers in message text input  fields left aligned?
    Thanks
    Aravinda

    Hi ,
    Sorry for late replay i am trying this alos not set that page....
    pageContext.forwardImmediatelyToCurrentPage(null, true, null);
    and one more that kff field working is fine for ex display any text pled displayed properly and only problem is not set the value and HrSitKeyFlex6 and HrSitKeyFlex7 fields are perfectly get the values but not pront HrSitKeyFlex8 that only my issue....
    Regards,
    Srini

  • Duplicate notifications for encrypted messages

    Hi all,
    We're using our C150 to quarantine emails that arrive with some form of encryption (e.g. a password-protected .zip).  When a matching email first arrives, it's correctly quarantined and sends an "Encrypted message detected" notification to the relevant recipient, as expected.  However, after releasing the email to the recipient, another "Encrypted message detected" notification is sent related to the same email, even though the recipient receives the released version too.  It's causing some people a bit of confusion to get this second notification at the same time they get the email it's complaining about.
    We have the following setup under Mail Policies:Anti-Virus -> Anti-Virus Settings -> Encrypted Messages:
    Action applied to message = Quarantine
    Archive original message = No
    Modify message subject = Prepend the text "[WARNING :  MESSAGE ENCRYPTED]"  (Interestingly, the first notification generated doesn't include this prepended text as part of the subject, but the second one does; not sure if this is a clue to what's happening)
    Under Advanced:
    Add custom header to message = No
    Container notification = System Generated
    Other Notification = Recipient + Others (admins)
    Modify message recipient = No
    Send message to alternate destination host = No
    If anyone can shed some light on why this is happening or if you've seen it before, please let me know.
    Kind regards,
    Dan

    Hi Steven,
    Thanks for the tip.  I've traced the logs as suggested, and they really only seem to confirm the symptoms.  There's the initial message getting quarantined based on the encrypted content, followed by two notifications sent out (one to the affected user, and one to an admin email address.)  Then, after release, there are two more notification messages generated based on the original message, and delivery of the released message.  They all seem to relate back to the original message; in brief:
    Initial arrival:
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 matched all recipients for per-recipient policy DEFAULT in the inbound table
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 interim verdict using engine: CASE spam negative
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 using engine: CASE spam negative
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 interim AV verdict using McAfee ENCRYPTED
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 interim AV verdict using Sophos ENCRYPTED
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 antivirus encrypted
    Fri Mar 26 10:55:59 2010 Info: MID 3222428 was generated based on MID 3222427 by antivirus ## Notification to user
    Fri Mar 26 10:55:59 2010 Info: MID 3222429 was generated based on MID 3222427 by antivirus ## Notification to admin
    Fri Mar 26 10:55:59 2010 Info: MID 3222427 quarantined to "Virus" (a/v verdict:ENCRYPTED)
    After release:
    Fri Mar 26 11:00:26 2010 Info: MID 3222471 was generated based on MID 3222427 by antivirus ## Duplicate notification to user
    Fri Mar 26 11:00:26 2010 Info: MID 3222472 was generated based on MID 3222427 by antivirus ## Duplicate notification to admin
    Fri Mar 26 11:00:29 2010 Info: Message finished MID 3222471 done
    Fri Mar 26 11:00:30 2010 Info: Message finished MID 3222427 done ## Original mail that is being released
    Fri Mar 26 11:00:30 2010 Info: Message finished MID 3222472 done
    Nothing I've omitted to save space seems to indicate anything other than regular delivery behaviour.
    cheers,
    -dan

  • How can u find SRM error message texts?

    hi friends
    How can u find SRM error message texts?
    thanks
    regards
    chinna

    Hi,
    There are several ways.
    1. Go to BBP_PD and open the document. Select the link "Check again" in the bottom area.
    2. Go to SE17 and serch it from table T100.
    3. Go to SE91.
    Regards,
    Masa

  • How to show the message text for constraint violations

    Hi all,
    In a batch procedure a primary key is violated (ORA-00001). For the primary key, a message is recorded in the TAPI and the message table.
    How to show the enduser a proper message text instead of the ORA-00001.
    We are using Designer 6 with Headstart 2.1.2.
    Thanks in advance,
    Joep

    Joep,
    If you try to insert the record by calling the ins procedure of the Table API, you will see that it will result in an ORA-20998 message, which means that the error message details reside in the CG$ERRORS plsql message table. These messages can be extracted e.g. with the messages.sql script, shipped with headstart.
    If you do not want to rewrite your direct DML (insert into [table name] ...) in the complexer calls to the TAPI services, you might want to user VAPI's for it. In fact, this is one of the major advantages of using VAPI's.
    The CDM guidelines volume, chapter 6 states that:
    <I>The front end no longer needs to trap declarative constraint
    errors (Primary Key, Unique Key, Not Null and Check
    Constraint violations) and replace them with a user-friendly
    error. The View API issues DML statements through the TAPI
    and the TAPI traps all declarative constraint errors, and puts
    user-friendly message on the stack, in the preferred language of
    the user! Fore more information, see the section, Completeness
    of Rule Violations Reported in Front End, in this chapter.</I>
    So the only thing you need to do is generate VAPI's, and trap the ORA-20998 message (qms$errors.qms$exception) in an exception handler, where you retrieve the user friendly messages from the message stack!!
    Regards, Marc

  • Why can't I text friends who don't have an apple product?

    Why can't I text friends who don't have an apple product?

    The iPad cannot send traditional text messages (SMS) which are platform independent since they are a carrier service.
    The iPad uses Apple's own messaging service iMessage to send messages. Which means only Apple devices can receive those.
    If you need to message people on other platforms you need a different messaging App liike Skype or Google Hangouts.  Note, that these will not be SMS messages like your phone can send. They'll be internet based messages so the other user will have to be registered with the service you choose to use, and you will have to have him as a contact in that service to be able to send them a message.

  • With per-message S/MIME enabled, the default action when replying to an encrypted message is to send that reply unencrypted.  Causes users to accidentally send originally encrypted content, back unencrypted.

    This seems counter-intuitive, are we doing something wrong or is this working as expected?
    When we have per-message S/MIME enabled on an iOS 8 device.  Everything works as expected and we have the ability to select when you are sending an email whether that email should be encrypted or not, but i've noticed that, when you receive an email encrypted with your S/MIME cert, read that email on your iOS8 device with per-message S/MIME enabled, and reply to, or forward, that message, the default action is to send that reply, or forward, unencrypted UNLESS you manually re-tap the little padlock button to re-encrypt the message.
    This seems broken.  I would imagine we would want the default action when replying or forwarding that encrypted message to be an encrypted reply or forward so as to keep the encryption intact.  I can't think of a time when you would actually want to send an unencrypted reply to an encrypted message, as doing so would send the originally encrypted content back, as unencrypted text therefore negating the point of ever encrypting it in the first place.
    I know we can set the iOS device to by default send ALL email as encrypted, but that's overkill.  Our users probably only get 1 or 2 encrypted emails a week, but when they do get those encrypted email we would want their replies and forwards to those email to also remain encrypted, and not open up the chance of one of these users forgetting to re-check the padlock button thus accidentally sending the originally encrypted content, out as an unencrypted message.
    Is this working as expected or are we doing something wrong?

    Hi,
    Thank you for your clarification.
    Yes, it seems you have installed all the updates for the Outlook.
    “Testing on a good computer” is a method to narrow down whether the cause is related a specific computer.
    For debugging tool, I think we can take a look at:
    1. RPCTrace log
    2. Process Monitor
    For RPCTrace log, it’s not that easy to capture. You must firstly replace some Outlook dll files before you can capture the log. Even more, the dll files can vary if the Outlook
    SP versions are different. So, It’s recommend to contact a Microsoft Support to capture and analyze the trace log.
    Thanks,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • How to change reject call SMS message text

    Hello everyone
    Some time ago I bought a Nokia N9 and one feature I use frequently is reject calls sending a message.
    In other Nokia phones (symbian) you can change the message text in options section, but in this phone I can find how to change it.
    Do anyone know how to change this message?
    Thanks in advance

    Hi Amit,
    This can be done easily, if it showing the data of a view object then you can change the value of view attribute.
    Suppose a column in VO I say rank fetches value as 1,2,3 then in vo query to append L1,L2....
    Suppose I have quary like select rank from xx_table then I can change it to select 'L'||rank from xx_table.
    I hope this will resolve your problem.
    Regards,
    Reetesh Sharma

  • Gmail message text box does not show up when I click on message to read it. Text will appear quoted if I click in Reply box.

    When I open Gmail, I get the usual list of messages. When I click on a message to read it, everything appears as usual except the box with the message text in it. To see that text, I have to click in the Reply box, and then I'll see the original message text quoted.
    This is true on three different Gmail accounts. I've not changed any Gmail settings. I have enabled and disabled various extensions and User Styles that affect Gmail, and turned off Greasemonkey, without effect.
    Yesterday I did update Java 7 update 10, but Gmail was still working after that. I did install several new extensions at that time, but I tried disabling them and restarting, and the problem persisted.
    Please help. Thanks.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Encrypt Message does not work with new Plug-in 7.3

    I installed the new Email Security Plug-in 7.3 but now the Encrypt Message button does not work.  It is grayed out and unavailable when I attempt to create a new message. 
    I first tried installed 7.3 over the previous version but every time I opened Outlook I received an error message about XML not loading.  I uninstalled the plugin, rebooted and installed it clean and that took care of the XML message.  But I then found the encrypt button issue and have not been able to solve that issue.  This is not isolated to my machine as I have tried installing it on another machine that never had the plug-in installed before.                  

    My understanding is that they completely rewrote it, which is probably why an upgrade doesn't work well...
    I did get one way of deploying figured out, the stuff on page 3-20 has some errors. 
    Here's what I did that works:
         Do a clean install on a machine that doesn't have any plugin installed.
         Copy the C:\Users\All Users\Cisco\Cisco IronPort Email Security Plug-In\Common directory and its contents to a network accsible share, say \\fs1\share\pluginconfig, so you now have \\fs1\share\pluginconfig\Common, etc...
         Copy your BCE_Config_Signed.xml file to the Common folder
         Rename that to config_1.xml
         Edit the CommonEncryptionConfig.xml to have the following XML:
          Now you can push the install with a command line that references the folder (the example on page 3-20 is wrong, no 's' ):
                CiscoIronPortEmailSecurity-7-3-0-102.exe /exenoui /qn UseCustomConfig="\\fs\share\pluginconfig"
           (if you're doing it on the same machine you did the clean install with, you should uninstall it first...)
    Message was edited by: Ken Stieers

  • I cannot get my messages/text messages to work om my Hi.  I am sending this thru my iPad.  Respond and let me know you got it.  Fun fun fun.  .  I did go and try to another Apple ID different from my iPhone but it still will not work.  Can anyone help me?

    I cannot get my messages/text messages to work om my Hi.  I am sending this thru my iPad.  Respond and let me know you got it.  Fun fun fun.  .  I did go and try to another Apple ID different from my iPhone but it still will not work.  Can anyone help me?

    chicx wrote:
    This is the third time of writing this on your Apple Support Communities!
    Not with your current user id.
    Far too much uneccesary information in your post, which only confuses things, a vast amount!
    Let's start with iTunes.
    Have you updated iTunes to 11.1.5, because the previous version did appear to have an issue about seeing iPods?
    With iTunes 11.1.5 installed, look in Edit/Preferences/Devices, (or use the ALT key, followed by the E key and then the F key) and make sure that the box named Prevent iPods, iPhones and iPads from syncing automatically does not have a tick in the box.
    Once you have doen those two things, check to see if the iPod is seen by iTunes.
    chicx wrote:
    By the way, what does IOS mean? (I thought IO stood for operating system, but am flummoxed by the S on the end.
    Really?
    OS stands for Operating System. (In computer speak, IO means Input/Output.)
    iOS originally stood for iPhone Operating System, but it now refers to the iPod Touch and iPhone. The iPod Classic, which you have listed in your profile as your iPod, does not use iOS.
    I assume that you have been listening to the Podcast in your iTunes on the computer as you cannot transfer it to your iPod. It's what I'd do.

  • How to change message text encoding in multiple e-mail messages?

    Hello!
    I'm newcomer in AppleScript. I have imported a lot of email messages from mbox.
    The problem is that some of messages are displayed in correct russian encoding (KOI8-R) but
    other messages displayed with incorrect encoding. So i need manually set their encoding
    via mail menu to Cyrillic (Windows) to be able to read them. I got about 1000 of those messages.
    Is there any possibility to mark those messages in mail and then run AppleScript to change
    their encoding automatically?
    something like that (that script is not working one):
    tell application "Mail"
    set selectedMessages to selection
    if (count of selectedMessages) is equal to 0 then
    display alert "No Messages Selected" message "Select the message you want to get the raw source of before running this script."
    else
    set message text encoding to "Cyrillic (Windows)"
    end if
    end tell
    Thanks!

    I was able to get it to work on all selected emails using this script:
    (Note I changed the encoding to "Simplified Chinese (EUC)")
    using terms from application "Mail"
    tell application "Mail"
    set theMessages to selection
    tell message viewer 1
    repeat with themessage in theMessages
    set selected messages to {themessage}
    activate application "Mail"
    tell application "System Events" to ¬
    tell menu item "Simplified Chinese (EUC)" of menu 1 of ¬
    menu item "Text Encoding" of menu 1 of ¬
    menu bar item "Message" of menu bar 1 of ¬
    application process "Mail" to if (exists) then click
    end repeat
    end tell
    end tell
    end using terms from

  • I have a friend who just got a cell phone but it's not an iPhone but the person who use to have the number she got had or has an iPhone, I can't message my friend, the messages go out as iMessages and go to the other person. Is there a way to fix this

    I have a friend that just got a new cell phone, it's not a iPhone, but the person that use to have the number that she got did! I can't message my friend, they go out as iMessages to the other person! How can I fix this without turning all my iMessages off?

    She needs to call the carrier on her old iPhone and have it removed from her account.
    Once she does that you will not be able to use iMessage because that only works Apple to Apple.
    You will need to use something else like Skype instead.
    Allan

  • How to encrypt the text in password field in Oracle Forms version 6i

    Need help!
    How to encrypt the text in password field in Oracle Forms version 6i?
    one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
    Thanks!

    Hello,
    Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
    Francois

Maybe you are looking for

  • One PC cannot get get connector to install - unexpected error has occurred.

    I am working on a deployment of Essentials 2012 r2, and have run into one windows 7 client I can't get the connector to install on.  I have been able to connect other Windows 7 and Win 8.1 clients to this server on the same network.  Here is the clie

  • Problem in Printing the values in SAP Script

    Hi, I have to print the material, description, quantity and value in the invoice.. the problem i face is.. the variables which is of size 40 characters. only prints the data and gets trimmed because of which the data displayed in the invoice not in o

  • Stolen macbook pro - gmail syncing question

    Hi, My macbook pro was stolen from my apartment at the weekend - sometime between Saturday morning and Monday evening. Unfortunately I do not have 'findmymac' or anything enabled. Knowing the time that the thief got into the apartment would make it m

  • My wifi works fine but my macbook doesn't always find it

    Pretty much as it reads. Everything, my phone, other computers pick it up fine but the macbook pro sometimes connects and other times cant even locate it. Any ideas?

  • What Web Services Strobe Media Playback Uses.

    HI, Am I posting correct question or I am wrong Does strobe media playback uses any web service. If it uses or not please let me know .