16,005,222 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13725790 (Top 21 by date)
Member 13725790
18-Apr-18 11:53am
View
Thank you so much i solved it I downloaded the JDBC driver it worked
Member 13725790
18-Apr-18 11:09am
View
Aha could you help me please how to change the driver? I’m sorry if I sound slow
Member 13725790
18-Apr-18 10:37am
View
@Jochen Amdt so there’s no problem with the code but the access file im using right?
Member 13725790
4-Apr-18 23:25pm
View
The algorithm created by IBM, and I was thinking to contact them. But i was thinking to figure this out first. So you’re saying there’s no way to find out, other than that?
Member 13725790
28-Mar-18 10:38am
View
The results for example at first running time it gives 35 then i enter another data and i hit the button it gives 0 then again 1 then it gives random numbers. I will try it in console maybe it will give clear result. Thank you so much Richard
Member 13725790
28-Mar-18 9:26am
View
I did but still same result 😪
Member 13725790
28-Mar-18 1:38am
View
The wrong that it’s calculate the whole running program. What i want is to calculate only a particular method. Which is encryption because later i want to compare between the running time of method when the user enter different keys and different text size
Member 13725790
23-Mar-18 9:25am
View
Deleted
Ok Sorry sir
Member 13725790
23-Mar-18 7:43am
View
Deleted
It’s a function i think.. and i need to download a library to it
Member 13725790
22-Mar-18 14:48pm
View
I don’t need it as a class. How i can change that? >.<
Member 13725790
22-Mar-18 14:38pm
View
Cannot find symbol
Symbol: class BinaryCodec
Location: class MARS
local variable hides a field.
MARS is my class. I yhink BinaryCodec() is function why it says it has class
Member 13725790
22-Mar-18 14:16pm
View
i came up with a solution but there's an error in line 2 if you could help me please. and i posted another question related to that. thank you
Member 13725790
22-Mar-18 12:34pm
View
Don’t be sorry. I really appreciate your help offer. Besides you helped me im really grateful for you. I agree this is complicated code. But ill keep searching and thank you for the links 👍🌹
Member 13725790
22-Mar-18 12:18pm
View
Deleted
The code in console was like this: now i want the user input the text in JTextField, and the key will be value in JButton, and the output in another JTextFeild
BufferedReader userInput = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter Text that you want to encrypt:");
String plainText = userInput.readLine();
System.out.println("Enter the key:");
String key = userInput.readLine();
byte[] encrypted = MARS.encrypt(plainText.getBytes(), key.getBytes())
System.out.println("Plain text: " + plainText);
System.out.println("Encrypted Text: " + new String(encrypted));
Member 13725790
22-Mar-18 12:05pm
View
I just changed the whole code to what you recommended. But i’m not sure how to get the output in Jtextbox or give the K a integer value so once the user click that key it directly calculate like calculator 😥 how i can do that? I tried searching but nothing worked
Member 13725790
22-Mar-18 9:53am
View
You’re right i’m for The null option i just added but the problem same still. And about what you mentioned i tried that but later ill need the system to caculate the encryption time so im thinking it will b right from the user click the encryption button till the results shows. But ill try as u say hopefully it works. Thank you for helping me out
Member 13725790
22-Mar-18 9:50am
View
@Richard MacCutchan. Sorry for my late reply but the problem is in getText() that in if else statements and the last line showing the result in textbox encrypt
Member 13725790
15-Mar-18 13:55pm
View
Deleted
What I’m trying to do is that ask the user to enter text to be encrypted. Then enter the key he wants to use to encrypt either 128, 192, or 256. But when I test it whenever I enter anything it gives the same output :(
package test;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class call {
public static void main(String[] args) throws Exception {
byte[] array = "going to encrypt".getBytes();
byte[] key = "the key you want to use".getBytes();
byte[] encryptBloc = MARS.encrypt(array,key);
BufferedReader userInput = new BufferedReader
(new InputStreamReader(System.in));
String plainText = userInput.readLine();
System.out.println("Enter Text that you want to Encrypt: " + plainText);
BufferedReader ke = new BufferedReader
(new InputStreamReader(System.in));
String kee = userInput.readLine();
System.out.println("Enter The Key you want to use to encrypt this message: " + key);
System.out.println("plain Text: "+ plainText);
System.out.println("Encrypted Text: " + encryptBloc);
}
}
The output is:
MARS
Enter Text that you want to Encrypt: MARS
128
Enter The Key you want to use to encrypt this message: [B@106d69c
plain Text: MARS
Encrypted Text: [B@52e922
Member 13725790
15-Mar-18 13:54pm
View
Deleted
What I’m trying to do is that ask the user to enter text to be encrypted. Then enter the key he wants to use to encrypt either 128, 192, or 256. But when I test it whenever I enter anything it gives the same output :(
package test;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class call {
public static void main(String[] args) throws Exception {
byte[] array = "going to encrypt".getBytes();
byte[] key = "the key you want to use".getBytes();
byte[] encryptBloc = MARS.encrypt(array,key);
BufferedReader userInput = new BufferedReader
(new InputStreamReader(System.in));
String plainText = userInput.readLine();
System.out.println("Enter Text that you want to Encrypt: " + plainText);
BufferedReader ke = new BufferedReader
(new InputStreamReader(System.in));
String kee = userInput.readLine();
System.out.println("Enter The Key you want to use to encrypt this message: " + key);
System.out.println("plain Text: "+ plainText);
System.out.println("Encrypted Text: " + encryptBloc);
}
}
The output is:
MARS
Enter Text that you want to Encrypt: MARS
128
Enter The Key you want to use to encrypt this message: [B@106d69c
plain Text: MARS
Encrypted Text: [B@52e922
Member 13725790
14-Mar-18 21:21pm
View
Ok thank you so much. I will work on that :)
Member 13725790
14-Mar-18 11:32am
View
the main class is there it call call and I miss typed getBytes.
How I can call the encryption key argument?
thanks
Show More