My Math Forum  

Go Back   My Math Forum > Science Forums > Computer Science

Computer Science Computer Science Forum


Thanks Tree1Thanks
  • 1 Post By Joppy
Closed Thread
 
LinkBack Thread Tools Display Modes
April 13th, 2018, 11:50 PM   #1
Banned Camp
 
Joined: Nov 2017
From: india

Posts: 204
Thanks: 1

How to encrypt message in computer

hello
how to encrypt message like there is hello
message I want to send by usb and it should change it after opening in another computer it should display same by some method nobody else can open it.

Last edited by skipjack; April 14th, 2018 at 06:18 AM.
integration is offline  
 
April 13th, 2018, 11:57 PM   #2
Senior Member
 
Joined: Aug 2012

Posts: 1,971
Thanks: 550

Quote:
Originally Posted by integration View Post
hello
how to encrypt message like there is hello
message I want to send by usb and it should change it after opening in another computer it should display same by some method nobody else can open it.
If you wish to encrypt a message so that nobody can read it, simply pass it through a constant function. For example the constant function 0. Whatever your plaintext is, say, "hello", the ciphertext -- that's the jargon for the encrypted plain text -- is the number 0.

This is a very simple system and it guarantees that nobody can read the message.

But is that a feature? Or a drawback? Nobody can read the message, not even the intended receiver. There is no way to recover the plaintext from the ciphertext. This is the most secure code imaginable.

It's also useless. What you really want is a method of encrypting a plaintext so that nobody except the intended recipient can decode the ciphertext. That is a much harder problem!

Last edited by skipjack; April 14th, 2018 at 06:18 AM.
Maschke is offline  
April 14th, 2018, 02:57 AM   #3
Banned Camp
 
Joined: Nov 2017
From: india

Posts: 204
Thanks: 1

then how to do This?
integration is offline  
April 14th, 2018, 06:14 AM   #4
Senior Member
 
Joined: Oct 2009

Posts: 436
Thanks: 147

Quote:
Originally Posted by integration View Post
then how to do This?
You replace every letter with a different letter. Like every a becomes b, and every b becomes c, etc. And then you send this to somebody.
Micrm@ss is offline  
April 14th, 2018, 06:42 AM   #5
Global Moderator
 
Joined: Dec 2006

Posts: 19,281
Thanks: 1680

Let's suppose the message is 200 bytes long. On the storage device, there's a file containing 200 bytes of data securely supplied beforehand by the intended recipient. Your message is added to that data, byte by byte. The recipient receives the storage device and can recover your message by subtracting the data that they supplied originally (as values they chose randomly).
skipjack is offline  
April 14th, 2018, 07:42 PM   #6
Banned Camp
 
Joined: Nov 2017
From: india

Posts: 204
Thanks: 1

Quote:
Originally Posted by Micrm@ss View Post
You replace every letter with a different letter. Like every a becomes b, and every b becomes c, etc. And then you send this to somebody.
then how to do it in software is there any software
integration is offline  
April 14th, 2018, 07:58 PM   #7
Senior Member
 
Joined: Feb 2016
From: Australia

Posts: 1,608
Thanks: 549

Math Focus: Yet to find out.
Quote:
Originally Posted by integration View Post
then how to do it in software is there any software
You can write a simple program which takes an array of characters and converts each character into another one, as micromass suggested. In c++, this is easy since all characters can be represented as numbers.

The Caesar cipher is a simple example you can practice with.

https://en.wikipedia.org/wiki/Caesar_cipher

https://www.asciitable.com/
Thanks from integration
Joppy is offline  
Closed Thread

  My Math Forum > Science Forums > Computer Science

Tags
computer, encrupt, encrypt, message



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer and pangram Denis Computer Science 6 May 13th, 2017 08:27 AM
Clock in computer MMath Computer Science 2 November 20th, 2016 08:38 AM
Computer Games Eminem_Recovery New Users 7 September 21st, 2011 12:25 PM
computer program Hoempa Computer Science 0 June 21st, 2010 05:37 AM





Copyright © 2018 My Math Forum. All rights reserved.