How to do an encryption and decryption features in my application for a call. Is their any algorithm available for it?
Thanks in advance :)
I was sending one message that should be encrypted and reciever should reply same .when i recieve that same message it should match and gives automatic call to reciever.
Take a look at the javax.crypto documentation for Android
Related
I have a project on SMS encryption. It will be able to send encrypted SMS.
I don't know where to start. I work with android studio. Please help me out with solutions.
for encryption you have to use cryptography algorithms like ECC, RC4, RC6, ESA, AES etc. and for simple solution you can use Base 64 encoding and decoding. first you have to encrypt data then send SMS, ans at another side you have to receive the message and decrypt the message using same algorithm then you get your actual message.
I am using Adventnet 4.0.0 API to receive traps. When AES 128 is used as privacy authentication it is successfully received, whereas when I change to use AES 256 it is not receiving. But Wireshark is able to receive and decode properly.
Any thing I am missing or Adventnet 4.0.0 is not capable of handling AES 256?
The WebNMS page for the Java SNMP API lists the supported encryption schemes:
SNMPv3 security: Support for HMAC-SHA-96, HMAC-MD5-96, CBC-DES, CBC-3DES, CFB-AES-128, CFB-AES-192, CFB-AES-256 bit encryption.
If you don't think it's working like it should, it's always worth shooting off an email to their support crew.
Hard to say more than that without seeing your code.
is it possible to send a PGP encrypted/signed mail with JavaMail (javax.mail package)?
Is it also possible to encrypt attachments?
If so, could anybody give me pointers how to do this?
I have searched the API docs (https://javamail.java.net/nonav/docs/api/), found nothing.
Do I have to use external libraries for encryption? If so, where can I learn how to sign an email?
I'd be greatful for any hints!
Thanks!
See Bouncy Castle and JavaMail-Crypto.
i m using java,gwt.while login or creating account when user will enter the password,on server side i m encrypting it but i also want to apply encryption to passord on client side.which i will decrypt on server side and will use it for further process.
i googled but i m not getting which technique should i use for encryption on client side.
Thanks in advance.
Client side encryption in javascript will not be secure because you must somehow provide the key to the client and server. So key will need to be sent over unencrypted network.
This scheme is really a security through obscurity and is not secure, because someone could reverse engineer your protocol and get the key.
The only way to secure data on the web is HTTPS. You can simply configure this on the server without changing your code.
GWT-Crypto is what you need.
Hope this helps.
I have an assignment called "Write a client server socket program in Java in which server will authenticate client using authentication algorithm." How do I get started? Which are the prerequisites of knowledge of computer security and socket programming to implement this? Any links to good tutorials?
EDIT: Using Caesar Cipher
Maybe this can help you:
http://www.javaworld.com/jw-12-1996/jw-12-sockets.html
The authentication can be a simple username/password scheme.
Sockets
Authentication Algorithm
This requirement is vague. I will give you the simplest possible answer:
write the server in such a way, that it requires a username and password with every request.
Are your using an authentication algorithm or are you just encrypting the message?
If you just have to encrypt the message then make sure both ends have the same cypher stored in them (Two arrays of characters should work ) and encrypt the string character by character before you send the message then decrypt it character by character on the other end.
You don't use a Caesar Cypher for authentication merely encryption. If you want authentication then separately you can have the first message of the socket connection be a username/password both of which you can encrypt client side and decrypt server side, then check they are valid. For the simplest example of this just hard code an acceptable username and password on the server and have the username and password on the client be entered on the command line.
For anybody that Googled their way here, an example of an authentication algorithm or "handshake" is more than a username and password. It would be a challenge sent from the server to the client, such as a random string; and the client performs an algorithm on the challenge, such as bit wise operations for example, and sends it back to the server. The server then does this same thing to the challenge and compares with the one the client sent before verifying the log in.
This is used to create a more arcane protocol to deter 3rd party developers such as bot makers from creating unauthorized software. Often times the handshake procedure is very difficult, not only in operation but also using complex functions of the used language to make porting very difficult.