##### What is an Encryption And Decryption
 What is an Encryption And Decryption Lamon112 Unladen Swallow Posts: 3 Threads: 3 Joined: Jan 2017 Reputation: 0 Jan-13-2017, 02:30 AM 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 Reply Larz60+ aetate et sapientia Posts: 9,791 Threads: 365 Joined: Sep 2016 Reputation: 422 Jan-13-2017, 05:14 AM Code and decode Reply Skaperen Black Knight Posts: 3,579 Threads: 1,154 Joined: Sep 2016 Reputation: 13 Jan-13-2017, 05:35 AM (This post was last modified: Jan-13-2017, 05:35 AM by Skaperen.) 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 Posts: 5,002 Threads: 103 Joined: Sep 2016 Reputation: 421 Jan-13-2017, 05:47 AM 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 wavic So-and-so of the Yard Posts: 2,898 Threads: 45 Joined: Sep 2016 Reputation: 89 Jan-13-2017, 07:00 AM (This post was last modified: Jan-13-2017, 07:00 AM by wavic.) 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 Skaperen Black Knight Posts: 3,579 Threads: 1,154 Joined: Sep 2016 Reputation: 13 Jan-14-2017, 10:09 AM 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 wavic So-and-so of the Yard Posts: 2,898 Threads: 45 Joined: Sep 2016 Reputation: 89 Jan-14-2017, 10:56 AM 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 Larz60+ aetate et sapientia Posts: 9,791 Threads: 365 Joined: Sep 2016 Reputation: 422 Jan-14-2017, 01:20 PM 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 Kebap τη καλλίστη Posts: 461 Threads: 28 Joined: Sep 2016 Reputation: 8 Jan-14-2017, 10:14 PM (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