• 0

java encryption ? PLEASE?


Question

16 answers to this question

Recommended Posts

  • 0

if you are not going to be useful stop insulting my intelligence and get off the forums... Im sick of people like you, I have obviously googled it and I found an ecryption method or two most of which are not any help to me... if i have come to the forums it means google just is not working out

  • 0
if you are not going to be useful stop insulting my intelligence and get off the forums... Im sick of people like you, I have obviously googled it and I found an ecryption method or two most of which are not any help to me... if i have come to the forums it means google just is not working out

In fairness, you didn't provide too much information in your original post. If you have tried using Google, where did you encounter a problem?

  • 0

Everyone on this site seems to be so up their own arse. I don't see the point replying with a negative comment when it would take the same length of time to post a positive one. Without people posting the community and effectively Neowin would be dead.

To the OP, take a look at DES encryption: http://www.mkyong.co...d-des-tutorial/.

Also, take a look at : http://www.java2s.co...ecurity/DES.htm

  • Like 4
  • 0

Based upon...

I have seen a number of your comments on this board and you come across as a complete 133test tosser. Every one of your posts I have seen seem to be negative, de-constructive and completely unhelpful. Why? Why do you use this board? Neowin markets itself as a friendly community. Not everyone is at the same level, some people are still learning and you should feel privileged that they are turning to Neowin for help rather than stack overflow and the likes (i also find it hilarious someone posted links to another site telling them to ask there). Inst that the bloody point?!

  • Like 2
  • 0
I have seen a number of your comments on this board and you come across as a complete 133test tosser. Every one of your posts I have seen seem to be negative, de-constructive and completely unhelpful. Why? Why do you use this board? Neowin markets itself as a friendly community. Not everyone is at the same level, some people are still learning and you should feel privileged that they are turning to Neowin for help rather than stack overflow and the likes (i also find it hilarious someone posted links to another site telling them to ask there). Inst that the bloody point?!

I've only just become a moderator so I'm not going to do anything, but if you have a problem with a user you should do it with a PM, not go off-topic in a thread. (Y)

  • 0

I've only just become a moderator so I'm not going to do anything, but if you have a problem with a user you should do it with a PM, not go off-topic in a thread. (Y)

I don't want to be part of this 'community'. Just delete my account thanks.

  • Like 3
  • 0

ok here is some more information maybe you can help me ... I have now encrypted the messaged yay.... BUT i want to use a key i have chosen rather then the keygenerator ... i am having some issues with this though can anyone please show me a way to encrypt using my own desired key as I wish to decrypt and my program requires the old corn chicken and fox so encryptions have to be correct and the same

  • 0

I have seen a number of your comments on this board and you come across as a complete 133test tosser. Every one of your posts I have seen seem to be negative, de-constructive and completely unhelpful. Why? Why do you use this board? Neowin markets itself as a friendly community. Not everyone is at the same level, some people are still learning and you should feel privileged that they are turning to Neowin for help rather than stack overflow and the likes (i also find it hilarious someone posted links to another site telling them to ask there). Inst that the bloody point?!

Well said and because nik posts all the time the owners like him even thou most of his posts are crap and offending other members

I've only just become a moderator so I'm not going to do anything, but if you have a problem with a user you should do it with a PM, not go off-topic in a thread. (Y)

We are sick of it he comes in alot of peoples threads and trashes them.... WHy don't you mods do something about it? If I could tell him off without getting a warning I would.

  • 0

if you are not going to be useful stop insulting my intelligence and get off the forums... Im sick of people like you, I have obviously googled it and I found an ecryption method or two most of which are not any help to me... if i have come to the forums it means google just is not working out

I agree with him however, A simple search for "JAVA AES128 Encryption" on google yields countless working results on how to encrypt strings. Also as mentioned, stackoverflow is a great asset, as is providing more information on what you're trying to accomplish. "HLP MEEZ!" usually does not yield useful answers from the community.

Here's a freebee. Why not tell us if you're just trying to encrypt, such as store in a database, or if you want to encrypt to transmit. One could use AES128, the other would use SSL. Nobody can tell you how to encrypt your strings if you don't tell us the context and how you're using encryption.

Here's your freebee, that took me 2 seconds on google.:

http://www.javamex.c...symmetric.shtml

In case you're wondering how I found this so quickly,

  1. Open google. Type in "JAVA AES128 example"
  2. Click the VERY first result http://stackoverflow...ication-in-java
  3. Click the 2nd answer:http://www.javamex.c...symmetric.shtml
  4. ....
  5. Profit

  • 0

I agree with him however, A simple search for "JAVA AES128 Encryption" on google yields countless working results on how to encrypt strings. Also as mentioned, stackoverflow is a great asset, as is providing more information on what you're trying to accomplish. "HLP MEEZ!" usually does not yield useful answers from the community.

Here's a freebee. Why not tell us if you're just trying to encrypt, such as store in a database, or if you want to encrypt to transmit. One could use AES128, the other would use SSL. Nobody can tell you how to encrypt your strings if you don't tell us the context and how you're using encryption.

Here's your freebee, that took me 2 seconds on google.:

http://www.javamex.c...symmetric.shtml

In case you're wondering how I found this so quickly,

  1. Open google. Type in "JAVA AES128 example"
  2. Click the VERY first result http://stackoverflow...ication-in-java
  3. Click the 2nd answer:http://www.javamex.c...symmetric.shtml
  4. ....
  5. Profit

i will look at your links thanks for the help ... I am making a 2 way chat client (p2p) and i am encrypting the messages ... but before the chat can be secure I have to get an encryption code to both parties ....

so what i need to do is take and encryption key and encrypt it with a different key ... then send it to person B person B then encrypts the encrypted key with there encryption key... they then send it back ... person A (me) then removes the original encryption placed upon it leaving only person Bs encryption on the key.... person A is then meant to send it back to B so they can remove their encryption to see the shared encryption key so they can talk securely... :)

  • 0

i will look at your links thanks for the help ... I am making a 2 way chat client (p2p) and i am encrypting the messages ... but before the chat can be secure I have to get an encryption code to both parties ....

so what i need to do is take and encryption key and encrypt it with a different key ... then send it to person B person B then encrypts the encrypted key with there encryption key... they then send it back ... person A (me) then removes the original encryption placed upon it leaving only person Bs encryption on the key.... person A is then meant to send it back to B so they can remove their encryption to see the shared encryption key so they can talk securely... :)

Why do you want to encrpyt the actual message? if you use SSL in your p2p app, then the entire communication is encrpyted, and nobody would be able to read the message. This saves you having to:

1.) Share encryption keys

2.) add code/time/complexity to en/decrypt messages each time they get sent.

Why re-invent security when you can easily use an SSL connection between your clients/apps to secure the ENTIRE connection. I asked this same question on stack overflow the other day, as I was thinking of using AES128 to encrypt user names being sent over http. I was later convinced by users to just go with an SSL connection for the entire session.

  • 0

Why do you want to encrpyt the actual message? if you use SSL in your p2p app, then the entire communication is encrpyted, and nobody would be able to read the message. This saves you having to:

1.) Share encryption keys

2.) add code/time/complexity to en/decrypt messages each time they get sent.

Why re-invent security when you can easily use an SSL connection between your clients/apps to secure the ENTIRE connection. I asked this same question on stack overflow the other day, as I was thinking of using AES128 to encrypt user names being sent over http. I was later convinced by users to just go with an SSL connection for the entire session.

SSL isnt as golden as most people think.... if it can be "secured" one end and read the other without any kind of key or both users having an input then I dont trust it there is obviously a way for it to be read sooo its not the level of security i want

  • 0

SSL isnt as golden as most people think.... if it can be "secured" one end and read the other without any kind of key or both users having an input then I dont trust it there is obviously a way for it to be read sooo its not the level of security i want

Uh... perhaps you should look up how SSL works. SSL uses keys, a private and public key.

http://luxsci.com/bl...r-tls-work.html

http://security.stac...w-does-ssl-work

http://www.inet2000..../encryption.htm

unless you have a self signed cert in play, or someone uses a MITM attack to inject they're own known cert into your session, it's pretty damn secure...if it wasn't I don't think the worlds banks and other organizations would be using it. With a 128bit key, there are over 339,000,000,000,000,000,000,000,000,000,000,000 possible key combinations, and would take someone longer than the age of the universe to crack.

Something tells me you should probably learn a little more before messing with this stuff, so that you better understand the technologies you're working with. No offense.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • PDF-XChange Editor 11.0.1.0 by Razvan Serea PDF-XChange Editor is a comprehensive PDF editor that allows you to create, view, edit, annotate, and digitally sign PDF documents with ease. With advanced features like OCR, document security, and PDF optimization, PDF-XChange Editor is a powerful tool for both personal and professional use. Whether you need to edit text, images, or links, or add comments, stamps, or watermarks, PDF-XChange Editor provides all the necessary tools to make your PDFs look perfect. Additionally, it supports a wide range of file formats, including PDF, XPS, and DOCX, making it easy to convert and share your documents. PDF-XChange Editor key features: Edit text and images in PDF documents Add and remove pages from PDF files Annotate and markup PDFs with comments, highlights, and stamps Use OCR to convert scanned documents into searchable text Create and fill out PDF forms Sign and certify PDF documents digitally Add and edit hyperlinks within PDFs Extract text and images from PDF files Batch process multiple PDF files at once Customize the interface to your preferences Work with multiple documents in tabs Convert PDFs to other formats such as Word, Excel, and HTML Use advanced redaction tools to permanently remove sensitive information Add customizable headers and footers to PDFs Merge multiple PDF documents into a single file Split PDF documents into multiple files Add watermarks to PDF documents Use the measurement tools to calculate distances and areas in PDFs ....and much more PDF-XChange Editor 11.0.1.0 changelog: Fixed a crash in the new Open/Save dialog box when creating a new folder in an unavailable network path. (49552) Fixed a rare/infrequent crash on some dynamic XFA forms after changing their field values. [installer] Fixed an issue where shortcuts were lost during an upgrade from the previous version. [installer] Fixed an issue preventing migration of serial keys during updates from version 10. Fixed the issues with the shell context menu after installation of version 11. Fixed the issue with filtering comments. (49478) Fixed the issue that caused "Error [IO subsystem]: Invalid access mode." when converting PDFs to MS Office formats. Fixed an issue with the context menu position on some multi-monitor systems. (48467) Fixed an issue with handling complex custom file filters, displayed by JS, in the new Open/Save Files dialog box. (49486) Fixed several issues with the new 'Select Folder' dialog box. (49505) Fixed an issue with the new custom 'Open File' dialog box when using double-click to open it. (49498) Fixed an 'infinite' loop/proliferation in the 'Open Files' and 'Manage Places' dialog boxes. (49526) Fixed an issue with handling the mouse wheel inside the document "Find" box. (49539) Fixed an incorrect behaviour in the 'Go back (Alt+Left)' button in the new Open/Save Files dialog box. (49510) Fixed an issue with the shortcut keys (Alt+Left/Right) after navigating via breadcrumb paths in the new Open/Save Files dialog box. (49554) [installer] Fixed an issue with redrawing the progress text in the EXE installers. Fixed the issue where a mouse click outside of the polyline/polygon context menu during annotation creation would cancel the annotation. (49475) We switched back to using the system Open/Save/SelectFolder dialog box by default, instead of using the new one, because some popular features such as the QuickAccess/Recent items are missing in the new version. These will be added in a future release. Replaced the 'Extension' column in the new Open/Save File dialog box with a more user-friendly 'Type' column. Also fixed some issues when handling the 'Show file extension' option. (49497) Added the ability to authenticate local network shares in the new Open/Save Files dialog box. (49557) Improved the handling of dates after 01.01.2030 in XFA files - now such dates are stored properly when set via the dropdown widget. Flags NoZoom and NoRotate are now respected for only a limited subset of annotations. Download: PDF-XChange Editor (64-bit) | Portable ~300.0 MB (Shareware) Download: PDF-XChange Editor (32-bit) | Portable ~200.0 MB Download: PDF-XChange ARM64 | 276.0 MB Download: PDF-XChange Portable @PortableApps.com | 97.0 MB View: PDF-XChange Editor Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Still 3x what it should cost. So, it seems the trick is to increase price by 6x so that a reduction in price back to 4x looks like a steal. "You savvy shoppers win again!" I'm glad I'm not in a desperate spot to actually even need this overpriced crap. Hopefully, it comes back down by the time for when (or if) I ever do.
    • Although AI is great and has it's use cases they likely have massively overhyped it and it has not delivered as per their expectations. I fully expect them to start saying the same things again when it does get to a certain level of intelligence!
    • Microsoft wants to end printer driver headaches with Windows Ready Print by Usama Jawad A few days ago, Microsoft released Windows 11 Experimental build 26300.8553, bringing a ton of enhancements such as Start menu customization, search improvements, Taskbar polish, and other minor UI tweaks. Another relatively major enhancement snuck deep within the change log was related to upgrades to the Windows printing experience. Now, Microsoft has shared more details about these benefits. For starters, Microsoft has renamed its Modern Print Platform to Windows Ready Print. The company believes that this name highlights its shift in strategy, which now focuses on modernizing, securing, and streamlining the printing experience for Windows devices. Some of the upgrades present in Windows Ready Print have already been seeded to customers and partners. This includes ending support for third-party printer drivers via Windows Update and transitioning towards the Internet Printing Protocol (IPP) and the native Windows IPP printer driver. In line with these changes, new printer installations will default to Windows Ready Print on eligible devices starting from July 2026. However, Microsoft recognizes that not all environments will be able to migrate to this platform immediately, so it will allow users to choose between installing the printer via Windows Ready Print or the traditional OEM process. Users will be able to toggle this configuration through Settings > Bluetooth & Devices > Printers & Scanners > Printer preferences. This control applies only to new printer installations, and its functionality can also be modified via Group Policy as follows: Launch Group Policy Editor Navigate to Local Computer Policy -> Administrative Templates -> Printers Find and select 'Configure Windows Ready Print driver ranking' -> double click to open it Select 'Enabled' (if you wish to enable Windows Ready Print driver selection) or 'Disabled' (if you wish to explicitly disable Windows Ready Print driver selection). Select Apply Select OK Similarly, if you set up Windows protected print mode through the same setting in Windows 11, it will also default to using Windows Ready Print exclusively. Microsoft hopes that these improvements will help eradicate dependency on OEM-specific driver installation processes and simplify printer installations. We'll likely find out more about other tangible benefits in the coming months.
  • Recent Achievements

    • One Month Later
      johnjacobb40 earned a badge
      One Month Later
    • One Year In
      Primer1st earned a badge
      One Year In
    • Experienced
      JayZJay went up a rank
      Experienced
    • Reacting Well
      Sir_Timbit earned a badge
      Reacting Well
    • Week One Done
      rubentuben8 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      513
    2. 2
      PsYcHoKiLLa
      231
    3. 3
      +Edouard
      138
    4. 4
      ATLien_0
      87
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!