Computer Science, asked by destiny2015, 1 year ago

how to create encryption message?


lfstone3: Encryption is dated to be old it was used during julius ceasar by him now it is called cryptography let me give u an example if u want to say hello world you would encrypt it as gdkkn vnqkc to make it easy use g for h and c for d

Answers

Answered by BrainlyYoda
31
Make your encryption scheme something you can easily remember whenever you look at the encoded information. One or two rules/steps should be enough. If you make too many rules/steps when creating the scheme it will be much harder to recall when you need to use it to decode your information.Show a few samples of encoded information to your smartest friends and see if they're able to decode it within a few minutes.Test out your encryption scheme on unimportant information for a few weeks to make sure you remember it after some time has passed. If you don't, you'll need to come up with a more simple scheme that you won't forget.
Answered by Anonymous
4
public static void main(String args[])
{ String message = "<abc>ABCDEFG</abc>";
String key = "key"; byte[] b = encrypt(message.getBytes(), key.getBytes()); } public byte[] encrypt(byte encrypt[], byte en_key[])
{ try { SecretKeySpec key = new SecretKeySpec(en_key, "Blowfish");
Cipher cipher = Cipher.getInstance("Blowfish/ECB/NoPadding"); cipher.init
(Cipher.ENCRYPT_MODE, en_key)
; return cipher.doFinal(encrypt); } catch (Exception e)
{ e.printStackTrace()
; return null; } } 

lfstone3: What is the output?
Similar questions