Python Forum
What is an Encryption And Decryption
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is an Encryption And Decryption
#1
Hi guys so i got this one task that I should make an Encryption And Decryption in python so im curious what does that actually mean.
Thanks for your time
Rolleyes Idea
Reply
#2
Code and decode
Reply
#3
encryption is a method for transforming data into a secret form, using a secret key, that no one else can figure out unless they have the secret key and the decryption method. decryption is a method for transforming data from a secret form, using the same secret key used to encrypt it, back to its original form.

there is a type of encryption/decryption that uses two keys which are related to each other (and calculated together), one for encryption, the other for decryption.

to get started, don't worry if someone else can figure out your method and decrypt your data without being given the secret key.  you will need to worry about that later, when your method is to actually be used.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
Encryption(Make eg (plaintext) that is human readable difficult to understand hide information).
Decryption(Take it back to normalized data (plaintext) that is human readable or the computer can understand).
>>> word = 'hello world'
>>> encrypt = word[::-1]
>>> encrypt
'dlrow olleh'

>>> decrypt = encrypt[::-1]
>>> decrypt
'hello world'
Reply
#5
The two common encryption methods are symmetric and asymmetric. There are plenty of sources in www you can learn more

I see @Skaperen has explain them briefly
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#6
i was going to explain rot13 but @snippsat showed an even simpler method (no keys involved).
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#7
Hm! The simplest encryption for me is just to use a bitwise xor against some key.

>>> word = 'hello world'
>>> enc = "".join([chr(ord(char) ^ ord('a')) for char in word])
>>> enc
'\t\x04\r\r\x0eA\x16\x0e\x13\r\x05'
>>> dec = "".join([chr(ord(char) ^ ord('a')) for char in enc])
>>> dec
'hello world'
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#8
It's as simple as an 'Annie Oakly Code Wheel' from the Christmas Story,
or as a lifetime occupation . See: http://careersthatdontsuck.com/2007/02/2...ptologist/
Reply
#9
(Jan-13-2017, 02:30 AM)Lamon112 Wrote: I should make an Encryption And Decryption in python so im curious what does that actually mean.


Hello friend, have you heard of this handy online dictionary? I forgot the name, but it really whips the lama's ass:

Encryption
Cryptography


In there, you can even click the blue words to get more information on adjacent ideas. I heard you can even ask questions to improve things, but that's just a rumor!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  need help one time pad encryption implementation ! nad556 1 204 Nov-28-2020, 06:11 PM
Last Post: nad556
  encryption and decryption with python ibrahim 1 351 May-16-2020, 03:14 PM
Last Post: Larz60+
  cipher decryption tool nightfox82 0 290 Mar-25-2020, 06:36 AM
Last Post: nightfox82
  File encryption itzik 5 501 Nov-05-2019, 12:29 PM
Last Post: Gribouillis
  Vernam encryption method for files JohnCTX 1 511 Sep-18-2019, 04:31 PM
Last Post: JohnCTX
  Regarding encryption and decryption naressh1994 1 723 Jan-25-2019, 07:26 AM
Last Post: buran
  AES encryption - does not match between arduino and python 3 crypto guillaume55 0 1,936 Sep-23-2018, 11:14 AM
Last Post: guillaume55
  Python function that uses a word as the encryption key, rather than an integer wak_stephanie 4 1,810 Aug-31-2018, 12:16 PM
Last Post: perfringo
  lab experiment / encryption pythan 0 1,007 Jun-09-2018, 07:19 PM
Last Post: pythan
  AES Decryption too slow Hairy_Ape 10 2,490 May-10-2018, 06:33 AM
Last Post: Hairy_Ape

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020