Cypher Step

Cypher Step
How do I make a cipher in python?

Specifically I want to be able to instantly use any of the “rot” methods of ciphering (You go x amount of letters ahead, ex: In rot3, a->d)

Also I must express that I am a COMPLETE newcomer to programming at all, so a full step by step would be helpful.

The programming language doesn’t much matter though with some it will be more difficult than others. I have this exact program written in C, but I won’t post it. I have to check ans see if I managed to post the code for it. I might be able to send you a URL for the source code in C.

First, I’ll admit I don’t know the details of Python. I’m mostly a QB/VB/C/C++ programmer. So with that in mind, I’m not going to go into language specifics. Python isn’t that difficult to understand from what I have worked with though. Also, this is not the best way to do this but it should be the easiest to understand.

You are working with what is basically a Caesar cipher. In fact the historic rot3 cipher is usually credited to Caesar though the other rotations are not.

I suggest hard coding a known text message that you have encrypted by hand so that you know it is working correctly for testing purposes. When the program is working, you can add file I/O or some other input/output method to read in plaintext and output ciphertext or the other way around.

The very first step is that you’ll want to convert all the letters of text into upper case. Make the program do this. Do not do it manually. While you are at it, you may want to add an option to remove spaces and punctuation. You should also check for characters that are not punctuation or letters. You should be able to work with ASCII codes to figure out what letters need changed and what needs removed. Now, all your letters will be in the ASCII code range of 65-90 if you did everything right so far.

The next step is the actual rotation. You can rotate the letters in place and maintain the 65-90 range or you can subtract 65 and work with numbers in the 0-25 range. Either way will work. Remember that if you rotate the number over the 90 or 25, then you have to subtract 26 to return the number back to the normal alphabet. When you decrypt, you have to work in reverse and the 65-90 range has the advantage of not producing negative numbers when you rotate in the opposite direction.

Lastly, you need to print the results. If you reduced the numbers to the 0-25 range, then you’ll need to add 65 to get them back to normal upper case letter range.

To do all this you’ll need to use a loop at each step. Don’t bother trying to get fancy and do it all in one loop and in virtually one step even though it is possible. The important part is learning how this works and not how efficient you can make your program. Efficiency will come with experience.

You may want to print out the results between each step so you can verify that each step is working correctly. This is a common troubleshooting technique as well as a common way to show how a program is working at various stages. Don’t forget that you may be working with unprintable characters or at least characters that may not appear as letters in some stages. So, print the numeric value of the characters instead.

Depending on where you are at in learning, this little project may be easy, difficult or impossible. You need to know how to use loops, modify character values, and display your results. If you don’t understand this, you’ll need to study and perhaps review the various sections of the book or tutorial.

Shadow Wolf

Cypher StepCypher Step
Cypher Step

Underground Hip Hop: New York Rapper Strikws Back In 2010

CANE MURPHY a.k.a. redrum grew up in Stapleton, Staten island (Shaolin) and moved to section 8 housing in South beach where he was notorious for beat boxing & Sparking Freestyle cyphers on street corners. Downing 40 bottles of Old English, Murphy was known for his Irish wit & comedic story telling. Struggling through poverty, He turned to bombing the Streets with Graffiti to the point he was a wanted man by the Graff task force. In high speed chases with the police , Murphy was later picked up in a Narcotics sweep at the infamous South Beach Arcade for Hustling. He gave up everything in life and stepped into the Rap Game

The Rapper Paid his dues in New Yorks’ Underground Rap scene performing over two hundred times. From grinding at open mics, showcases, battles and every where in between to make a name for himself. He toured around the United States with Grammy Award winning Recording Artist and Guitarist -”Vernon Reid” & D.J Logic, as well as hoping on a track with Rap Legend “Slick Rick” on their album “Front end Lifter. Cane was one of the few rappers picked to perform in the first ever “Bronx Fest” with Hot 97 in attendance. Along with being featured on Mixtapes from D.JVlad

“Rock Star Blends” and “Coast2Coast Mixtape 81″, “Bedtyme 357″ (Remy Ma’s DJ). He’s also been featured in Canada’s “Peace Magazine” as well as online magazines “Juniors Cave”, Music notes ,The Southern mix etc.. In 2005 Cane Signed a two year licensing deal with “Missing Link Music”. In 2006 He was on a Hip-Hop compilation titled “Staten island Stand up” hosted by DJ G9D. In 2007 he released his single on Mekanizm Productions. In 2008 He’s on DJ Vlad’s Mixtape “Rock Star Blends Vol. 2″. In 2009 He’s Featured on the Mixtape titled “the unholy union” featuring HipHop artist “The Game” and “Don Demonio” Cane Murphy’s story is in XXL Magazine’s February’s issue. In 2010 Cane Murphy is Featured on Several Mixtapes, including Mixtapes Hosted by “DJ Khaled”, Coast2Coast Mixtape 115, and DJ Smoke “Showcase 75″ Mixtape. After surviving a major spine operation and Narcotics almost claiming his life, overcoming mental and physical obstacles, Cane Murphy is Now putting out his Debut Album “The Side You Don’t See” March of 2010 with production from Platinum producers “Rocwilder” and D12′s “Mr. Porter”…

Cane murphy’s Full Bio and Insirational Story. Cane Murphy aka Redrum has been rhyming and writing songs since a teenager. He put a group together called “Mekanizm” and went on to perform and sell cd’s. In 1999 he went solo under the Artist name “REDRUM” and worked with grammy award winning artist “Vernon Reid” (Rock group “Living Colour”) and went on tour around the United States with Vernon and D.J Logic in 2002/2003 with a song he was on with Rap Legend “Slick Rick” with the album titled “Front end Lifter” on Released on Rope a Dope Records.. in 2004 he Performed in the first ever Bronx Fest with “Hot 97″ and “Power 105″ in attendence , where Cane Murphy got to perform along side some of Hip Hop’s Pioneers. By 2005 he made a name for himself as an Rapper/Lyricist in New York’s Underground and was performing at Open mics, Showcases & College radio, time warner television shows and signed a two year “licensing deal” with Missing Link Music. Cane was featured on several Time Warner Television shows including “The actors stage”, “Shaolin’s – Off the Hook”, and “Morano Vision. He performed on the Movie score for the Independent Mob Movie “Jimmy whispers returns to mulberry street” starring “Clem Caserta” (Good Fellas). By 2006 Cane Murphy aka Redrum did several collaborations with Rappers & producers from all over the 5 boroughs of New York, Including a song with brooklyn rapper “Eddie cane”, The Notorious “Queens Dream team” and Rapper “Kaitawn”..In 2008 he independently dropped his debut Single “This here’s the night” and the “Industry Remix”. He then Released his Infamous Remake of one of Hip Hop’s Greatest Lyricists (RAKIM’s “Paid in Full”). The Song helped Cane Murphy gain Street Credibility amongst fellow MCs, Producers and Fans.

Cane Murphy was Featured on DJ VLAD’s “Rock Star Blends Vol. 2″. By 2009 Cane Murphy featured in Online Rap Magazines such as “Juniors Cave” , “The Southern Mix”, “Music Notes Magazine”, “LyricsInc Mag” and more. In 2010 Cane Murphy’s inspriational Story of Fighting through Pain while waiting on a second Reconstructive spine operation from a tradgic accident to hit the studio and finish recording his Debut album was in XXL Magazine and Canada’s Urban Culture Mag – “Peace Magazine”.. in March/April of 2010 Cane is Filming for his Debut Video for his Single “When i’m with You” Featuring island Def Jam Singer “Ashley Loren”. Cane Murphy is Featured on Several Big Mixtapes this year , including Mixtapes from Infamous “DJ Khaled”, Coast2Coast Mixtape 115, and DJ Smoke “Showcase 75″ Mixtape. Cane is working on his second song with exclusive production from Multi-Platinum Producer “Rockwilder” as well as collaborating with talented up and coming producer “sinima’ (pro). To know more you can log on to us at: http://www.redrumhiphop.com

About the Author

Matt turner is a online marketing expert. His current article hip hop mysterio Cane Murphy and his succession with the hip hops

About Public-key encryption (asymmetric encryption)?

Point out the mistake of the following message and correct them.(1 and 2 step shouldn’t be changed).
1. Alice wanted to send a secure message to Bob.
2. They wanted to use asymmetric encryption in the message transfer.
3. Aclice made a key pair.
4. Alice sent the private key to Bob.
5. Alice encrypted her message “Dknner at 7 pm today” with her public key.
6. Alice sent the cipher text to Bob.
7. Bob used the received private key to decrypt the cipher text.

Private and Public keys are the wrong way around.

4. Alice should have sent the public key to Bob, *not* the private one.

5. She should have encrypted her message with her private key, *not* her public one.

7. Bob should have used the public key to decrypt the cipher, *not* the private one.

Popping Cyphers – Step Ya Gamce Up 2009


Def Leppard English Flag Coolie Cup


Def Leppard English Flag Coolie Cup


$9.99


Keep your drink cold while rocking out with this coolie…

Alex Super Baking set - 18 Piece Metal and Plastic Set


Alex Super Baking set – 18 Piece Metal and Plastic Set


$12.49


Measure, mix, prep, and bake some imaginary treats| This 18-piece set features a loaf pan, bear pan, heart pan, mixing bowl, rolling pin, whisk, measuring spoons and cup, pastry wheel, 2 star cookie cutters, 2 heart cookie cutter, and an oven mitt. Bon Appetit|…

Set of 2 Heated Stainless Steel Travel Mugs


Set of 2 Heated Stainless Steel Travel Mugs



Product Description Keep your favorite beverages hot at all times with this set of 2 stainless heated travel mugs. Plug the detachable cords into any standard 12v car adapter of your car truck or R/V. Durable stainless-steel construction and locking lids ensure a safe trip anywhere. Product Details 12V Heated Travel Mugs – Set of 2 • Capacity: 16 ozs. • Airtight l…


Comforter - Crumble Bear


Comforter – Crumble Bear


$17.99


This is a soft plush comforter from the Once Upon a Time collection, featuring Crumble Bear. This super soft comforter is perfect to hold on to. Crumble is the feature of this comforter, his head and arms are built into the design. It doubles as a…

Passion of the Christ: Songs (Original Songs Inspired by the Film)


Passion of the Christ: Songs (Original Songs Inspired by the Film)


$16.44



Egyptian Hieroglyphs Made Easy


Egyptian Hieroglyphs Made Easy


$19.99


Learning and understanding of the ancient Egyptian hieroglyphic language. The hieroglyphic script was the longest lived and earliest form of the Egyptian language. Its use was limited primarily to religious and monumental inscriptions, whereas a more cursive script called hieratic was preferred for administrative and epistolary purposes. Hieroglyphic Egyptian employs pictures of objects, each with…

GE 37771 R40 Heat Lamp, Red, 250-Watt


GE 37771 R40 Heat Lamp, Red, 250-Watt


$3.39


250 watt 120 volt R40 Medium Screw (E26) Base Red Heat Lamp Red Incandescent GE Light Bulb…

Scarface - Vinyl Wall Decals Murals Stickers Art Graphic - 44H x29W - by üBer Decals


Scarface – Vinyl Wall Decals Murals Stickers Art Graphic – 44H x29W – by üBer Decals


$44.99


Better than wallpaper, wall stickers are a perfect way to decorate your room and express yourself. They are a fun, easy and removable decor solution. These stickers are pre-cut and will only take you several minutes to apply on any surface – walls, doors, windows, and more. Each of our designs come with easy instructions to follow. This is an original design from uBer Decals. All other sellers are…

Botanical Interest - Squash Winter Tble King Acorn (Certified Organic)


Botanical Interest – Squash Winter Tble King Acorn (Certified Organic)


$2.99


Isn’t acorn squash the epitome of a fall vegetable? These glossy ribbed beauties are so attractive, you may want to display them in a basket on your table for awhile before cutting them open for dinner! An All America Winner in 1974, ‘Table King’ is still very popular decades later for its fabulous traits. The orange flesh has marvelous, rich flavor, and the fruit grows on very compact 4′ vines. (…

Lilyette  Women's Minimizer Bra #427


Lilyette Women’s Minimizer Bra #427


$32.00


Experience the elegance of our Lilyette® Simplex Minimizer Bra with Embroidery!Minimizes your bust    Elegant embroidery adds femininityNo wire poke throughFlexible fitFabric ContentCups: 69% Nylon, 31% Lycra® ElastaneEmbroidery: 57% Rayon, 31% Nylon, 12% PolyesterBack: 92% Nylon, 8% Lycra® ElastaneImported…

Maidenform Flexees® Ultimate Slimmer Unlined Minimizer® Body Briefer


Maidenform Flexees® Ultimate Slimmer Unlined Minimizer® Body Briefer



Your flawless look will be complete with Flexees® Ultimate Slimmer Unlined Minimizer® Body Briefer!      Minimizes and shapes the body Matte and shine fabric and lace accents provides feminine styling  Perfect under all types of clothing      Decreases the bust-line a full size      Provides a flawless look under clothesFabric ContentCups and Front Panel: 78% Nylon, 22% ElastaneB…


Lilyette Women's Plunge Into Comfort Keyhole Minimizer


Lilyette Women’s Plunge Into Comfort Keyhole Minimizer


$32.00


AS SEEN ON THE TODAY SHOWOur Lilyette® Keyhole Minimizer Bra’s sexy plunge design provides a V-shape pitch that enhances cleavage while providing a sexy and secure fit on the body!   Minimizes size – not shapeEnhances CleavageSexy plunge stylingShimmering fabric appearanceGentle and comfortable on the bodyPrevents wire poke through   Fabric ContentBody: 78% Polyamide, 22% ElastaneCup Lining…

Last Night Gus


Last Night Gus


$1.99



Google AdWords for The Small Business


Google AdWords for The Small Business


$16.99


Do you want to create stellar ads that turn into leads and sales? Do you want to minimize the costs of your ad campaigns? Are you spending a lot for a little return? This DVD can help and I believe save you $1,000′s. Do not go it alone; it will cost you in time and money. Learn from this product and get ahead of the pack. Knowing more than your competition is the only thing you need to beat him. …

Charlie Rose - 'What Just Happened?' / Religulous (October 13, 2008)


Charlie Rose – ‘What Just Happened?’ / Religulous (October 13, 2008)


$24.95


A conversation about the film ‘What Just Happened?’ with Robert De Niro, Barry Levinson and Art Linson. || A conversation about the film Religulous with Bill Maher and Larry Charles.This product is manufactured on demand using DVD-R recordable media. Amazon.com’s standard return policy will apply….

Gecko Nasal Pad - Large, 4.12 Long


Gecko Nasal Pad – Large, 4.12 Long


$24.95


The Gecko Nasal Pad (formerly the Sleep Comfort Care Pad by Sequal) is intended for patients with Obstructive Sleep Apnea (OSA) who experience pain and discomfort on or around the bridge of their nose associated with using nasal or full face masks. The pad acts as a cushion between the patient’s face and mask, and is simply placed across the bridge of the nose under the mask. The protective polyme…

N.4 High Performance Hair Care - Jour d'automne Mighty Hair Spray - Style Collection 10 oz Aerosol


N.4 High Performance Hair Care – Jour d’automne Mighty Hair Spray – Style Collection 10 oz Aerosol


$21.00


A strong, yet flexible hold hair spray that remains in place under high humidity conditions. Keeps hair soft and chic with a no hair
spray feeling. Water-free, dry brushable spray gives strong support with no flakes or frizz. Hot tool and root lift values protect hair
from heat. Innovative technology provides additional sunscreen properties. Creates long-lasting hair styles and immediate results
f…

Kuzy® - AQUA BLUE Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


Kuzy® – AQUA BLUE Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


$1.00


Dress up your MacBook Pro in fashionable color, silicone protection now.
*** Will Not fit MacBook Air 11″ ***…

Kuzy - GREEN Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


Kuzy – GREEN Keyboard Silicone Cover Skin for Macbook / Macbook Pro 13 15 17 Aluminum Unibody


$1.00


Dress up your MacBook Pro in fashionable color, silicone protection now.
*** Will Not fit MacBook Air 11″ ***…

ASUS (RT-N10+) Wireless-N 150 Entry Home Router: Fast Ethernet and support upto 4 Guest SSID(Open source DDWRT support)


ASUS (RT-N10+) Wireless-N 150 Entry Home Router: Fast Ethernet and support upto 4 Guest SSID(Open source DDWRT support)


$25.98


The ASUS RT-N10+ EZ N Wireless Router can provide four wireless networks which feature dynamic bandwidth allocation and access control. With the ASUS RT-N10+ EZ N Wireless Router, you can allow guests to access the Internet without sharing your password and private network devices by creating a virtual wireless router for guest. Keep the high bandwidth and secure private network for yourself. Purc…

Arm And Hammer Large Drawstring Liners - 29210 - Bci


Arm And Hammer Large Drawstring Liners – 29210 – Bci


$6.25


Provides natural odor control from baking soda.For pans up to 18.5 x 14.75 x 9.75 .Size12 COUNTColor BCI – 684487…

Arm And Hammer Hooded Pan System - 22118 - Bci


Arm And Hammer Hooded Pan System – 22118 – Bci


$20.04


Compatible with arm and hammer deodorizer dispenser (sold seperately).Carbon/zeolite filter for odor control.Continuous antimicrobial protection.Door included.Easy to clean.Infused with arm and hammer odor neutralizers.SizeJUMBOColor WHITE/TANBCI – 684535…

Cow Ears Case Of 50 Pack of 50 Vanilla Case Of 50


Cow Ears Case Of 50 Pack of 50 Vanilla Case Of 50


$55.95


Package of 50. Cow Ears Case Of 50 Pack of 50 Vanilla Case Of 50 Best Buy Bones All-natural and healthy pet treat. Baked, making these chews low fat and high in protein. Great alternative to rawhide. Ingredients…

Sony ICF-C05iP Clock Radio for iPod (White)


Sony ICF-C05iP Clock Radio for iPod (White)


$49.99


With the Sony ICFC05iPWHT Clock Radio you can charge your iPod’s battery while you sleep. This Sony ICFC05iPWHT Clock Radio is the space-saving bedside accessory for iPod® and iPhone® users. Set the alarm to wake to the radio, iPod®, or a buzzer. The charging tray ensures both you and your iPod/iPhone® start the day with a fully charged battery. Plus, The Sony ICFC05iPWHT Clock Radio features …

Green Toys Sand Play Set


Green Toys Sand Play Set


$11.00


Kids will ‘dig’ building castles and hunting for buried treasure with the environmentally friendly Sand Play Set from Green ToysTM. Made of recycled plastic, this classic 4-piece collection of tools consists of a bucket, sand castle mold, shovel and rake. Made in the U.S.A from recycled plastic milk containers, which helps save energy, reduces landfill waste, and lowers greenhouse gas emissions, a…

Power Wheels Dune Racer


Power Wheels Dune Racer


$199.99


The Power Wheels Fisher-Price Stinger XS is a 2 seat, 12v BPRO with large off road tires. This cool dune buggy’s main feature is Monster Traction which delivers superior terrain performance versus other BPROs.
* The Power Wheels Fisher-Price Stinger XS is a 2 seat with front storage comparment and seat belts for added play.

* Drive two forward speeds 2.5-5 mph and 1 reverse speed 2.5 mph.

* Incl…


Alex Toys Learn to Dress Monkey


Alex Toys Learn to Dress Monkey


$24.63


Learn to dress from head to toe with Alex the monkey| This 22? long plush doll has 11 dressing activities that help develop fine motor skills. Learn to snap on straps, button, hook and loop, zipper and more. Comes with real socks and lace up sneakers, and his shirt and overalls are removable, too. Suitable for age 18 months and up….

Spark Plugs Pack 10


Spark Plugs Pack 10


$1.91


For automotive, motorcycle and marine engines. Unique copper core and exclusive electrode design assures fast starts, peak performance and long life. Chosen by more engine builders and car makers than any other. The source for serious power. . Sold in standard packs only. Package subject to change….

MANIFOLD SET R134a


MANIFOLD SET R134a


$83.99


Features and Benefits: Anti-flutter gauges smooth out needle movement Yellow hose includes shut-off valve Piston type free-floating valves reduce o-ring wear Extra access port for vacuum line Gauges can be recalibrated to maintain accuracyR-134A Brass Manifold with 3 60″ nylon barrier hoses and standard R-134A Couplers. Coupler sizes 14mm, 15mm, 16mm, 17mm, 18mm and 19mm.  Inner nylon layer …

TOYOTA AVALON 2006-2012 CAR SUV Truck Auto Center Armrest Cover


TOYOTA AVALON 2006-2012 CAR SUV Truck Auto Center Armrest Cover



Center Armrest covers protect, renew and add comfort to the center console of your vehicle. This cover fits a 2006-2012 TOYOTA AVALON. Picture shown is of an example of our product on a center armrest. Cover is made from a fleece fabric and is machine washable…


Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*