Question about Office Equipment & Supplies

Open Question

I need to create an application in java that would convert text strings into codes based on 128bit AES encryption. please Advice how i can create this application using already available libraries, and considering it should run both linux and windows . ideally i would prefer that i only need to create a gui and the AES encryption part is already written. please advice

Posted by on

Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

2 Answers

What is strings in java?

Handling character strings in Java is supported through two final
classes: Java String and StringBuffer. The String class implements immutable character strings, which are read-only once the string has been created and initialized, whereas the StringBuffer class implements dynamic character strings. All string literals in Java programs, are implemented as instances of String class. Strings in Java are 16-bit Unicode.

Nov 21, 2012 | Sun Java Programming Language (cdj-275)

2 Answers

Setting secured wireless connection

You can enable WEP on your router.

In the address bar of your browser, type to access the setup page of the Dlink router.

By default the username is admin and leave the password blank.

On the Setup page, go to Wireless.

Security Mode should be WEP then click Next.

You can change the WEP KEY 1. Make sure you remember this because you will need to enter this on your wireless computer.

Save the settings.

I hope this helps!

Jul 19, 2010 | D-Link DIR-625 (790069292637) Wireless...

1 Answer

Please write a java program to print my full name dhanalakshmi in a single line.

place the below code in a text file dhana.txt and compile it.

class dhana {
public static void main(String[] args) {
System.out.println("dhanalakshmi"); // Display the string.


Jul 07, 2010 | Sun Java Programming Language (cdj-275)

1 Answer

How to convert a Java Desktop application to Web-based?

1. No, it will take lots of code changes
2. Maybe
3. That depends on what its functions are
4. You may not have to convert it at all
5. Maybe, that's your choice

Oct 22, 2009 | Sun Computers & Internet

1 Answer

I have a hand written documents which is scanned and stored in a pdf format. i want to write coding to read this pdf file and convert the scanned text into normal text. is it possible using java. please...

No and here's why... Java is a programming language; its purpose is to be used to create programs that do useful things, but it is not equipped to do the complex analyses required to convert images to text. What you need is an OCR "image to text" conversion software application. Java is not such an application; it is a programming language meant to be used by programmers in a "platform independent context" (usually the World Wide Web). I suggest searching Google for what you need using these keyword strings: OCR image-to-text software. OCR stands for Optical Character Recognition.

Note that performing OCR on handwritten text is particularly difficult because it is so non-uniform (irregular). Here is a link that may be helpful in your quest for what is on its face at least by the way you asked, a very difficult process:

As one of my best programming professors (who taught me Java) used to say, "Yes, anything is possible in creating a computer program, but only if you have enough what? Skills, money and time to get the job done! Don't forget: time is money, so you know, don't bite off more than you can chew."

Apr 11, 2009 | Sun Java Programming Language (cdj-275)

1 Answer

I am developing one java related application.In this there are three places place1,place2 ,place3 ,,if i'm click the place 1 ,in text box the text should come ilike ''place1 text.After that, when i click...

public class MainWindow extends javax.swing.JFrame {

public MainWindow() {
.....component initialization function

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MainWindow().setVisible(true);

Mar 24, 2009 | Computers & Internet

1 Answer

Table creation via textfields using swings

import java.lang.Object;
import javax.swing.table.DefaultTableModel;

public class tabletest extends javax.swing.JFrame {
String[][] row = null;
String[] title=new String[3];
private int i;

/** Creates new form tabletest */
public tabletest() {
setTitle("table test");
System.out.print("NO Database Needed");

" In middle of this two source one generated code will be there that will be done by dragging ur fields to ur frame. THIS IS FOR netbeans IDE "

private void b1ActionPerformed(java.awt.event.ActionEvent evt) {
row=new String[4][3];
// TODO add your handling code here:

String s1=t1.getText();
System.out.println(" event 1");
String s2=t2.getText();
System.out.println(" event 2");
int k=Integer.parseInt(t3.getText());
String s3=""+k;
System.out.println(" event 3");
// for(int i=0;i<=2;i++)

}catch(Exception e){

table.setModel(new DefaultTableModel(row,title));

private void b2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:



* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new tabletest().setVisible(true);

// Variables declaration - do not modify
private javax.swing.JButton b1;
private javax.swing.JButton b2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JPanel jPanel1;
private javax.swing.JLabel l1;
private javax.swing.JLabel l2;
private javax.swing.JLabel l3;
private javax.swing.JPanel p2;
private javax.swing.JScrollPane scp1;
private javax.swing.JTextField t1;
private javax.swing.JTextField t2;
private javax.swing.JTextField t3;
private javax.swing.JTable table;
// End of variables declaration


Mar 13, 2009 | Computers & Internet

1 Answer

Please explain the working of this code

It's a Java http server (webserver) that serves random "prices" if they match a search string.

Well here is an explaination:

private static String[] symbols = {"DELL", "INTC", "MSFT", "ORCL", "SUNW"};
These are search strings

private static Random rnd = new Random();
This generates a random number

private static Charset cs = Charset.forName("UTF-8");
This is the charset that the http server uses

ServerSocketChannel server =;
Create a new server

server.socket().bind(new InetSocketAddress(8055));
Bind the http server to port 8055

The rest is handling the request and processing it

But here:
if(Arrays.binarySearch(symbols, symbol) >= 0)
response = "Price is " + (1000 + rnd.nextInt(9000)) / 100.0;
response = "Price not available";
channel.write(cs.encode("HTTP/1.0 200 OK "));
channel.write(cs.encode("Content-type: text/plain "));
It sees if the string input matchs: DELL INTC MSFT ORCL SUNW.

(private static String[] symbols = {"DELL", "INTC", "MSFT", "ORCL", "SUNW"};)
If so, it gives a price based on a random number.
response = "Price is " + (1000 + rnd.nextInt(9000)) / 100.0;)
Or else
It says "price not available"
then it gives a html header to end the error message.

Hope I helped you :)
Gook luck

Nov 26, 2008 | Computers & Internet

1 Answer

MS Access and application

You probably need to be inserting the value of a text object (ie, a String) , not the object itself. In VB.NET, a String object is an actual, not unlike a Java String object. In "classic" VB, a String object isn't really handled by the interpreter as an object in the C# / Java sense, so it can be referred to directly without resolving the value via a method call. So attempting to insert an object reference into a database field from C# code will probably not work unless the database knows to call toSting() on the object, which I am 99.99999% sure it cannot (depends on the database-- in this case Access, and more particularly, what version you are using, and if there is any .NET framework interoperability).

Calling myString.toString() though returns a String object in C#, so using that is likely not going to work. What you may need to do is return a character array using the 'chars' and 'length' properties of the C# String object.

Finally, after all this, your problem could be a lot simpler: the value(s) you are trying to insert may not be right for the field-- check the length of the values being inserted, etc. Use .trim() to eliminate leading and trailing whitespace, for example. If you post your INSERT statement and an example of the data you are using, I may be able to tell you more. Also, you are in ASP.NET and data transfer from web containers to Access databases is notoriously bedeviled work.

Mar 07, 2008 | Computers & Internet

Not finding what you are looking for?
Office Equipment & Supplies Logo

Related Topics:

25 people viewed this question

Ask a Question

Usually answered in minutes!

Top Office Equipment & Supplies Experts


Level 3 Expert

102366 Answers


Level 3 Expert

7993 Answers


Level 3 Expert

75822 Answers

Are you an Office Equipment and Supply Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides