Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Sandbox

Post History

66%
+2 −0
#5: Post edited by user avatar trichoplax‭ · 2023-07-06T13:38:21Z (over 1 year ago)
Add finalized tag now that the sandbox can be filtered to exclude tags (this isn't really a sequence question)
Caesar shift cipher [released]
# Introduction

What is ROT13? It's basically a cipher sequence that changes a letter's value from the number chosen. If we use ROT1 on "games", we get "hbnft". The basic interpretation of ROT13 is iterating the value of a letter by 1 $n$ times. If you still don't understand, try using the [ROT13 website](https://rot13.com/)

# Challenge

Make a program that takes input of a number from 1 to 25, call it $n$, and takes input of a string. It could be any. Then, use $n$ to convert the string into ROT$n$ and output the result.

### Examples of inputs and outputs:

If $n = 4$ and string is "Hello, world.", we get `Lipps, asvph`.  
If $n = 15$ and string is "trololol", we get `igdadada`.  
If $n = 7$ and string is "gxoxk zhggt zbox rhn ni", we get `never gonna give you up`.  
If $n = 24$ and string is "I want breakfast!", we get `G uylr zpcyidyqr!`.  
If $n = 13$ and string is "guvf grkg vf fhf", we get `this text is sus`.

Shortest program wins.
#4: Post edited by user avatar General Sebast1an‭ · 2021-08-12T04:26:51Z (over 3 years ago)
  • Caesar shift cipher
  • Caesar shift cipher [released]
#3: Post edited by user avatar General Sebast1an‭ · 2021-07-28T02:29:41Z (over 3 years ago)
  • Make a program that takes input of a number from 1 to 25, call it $n$, and takes input of a string. It could be any. Then, use $n$ to convert the string into ROT$n$ and output the result.
  • ### Examples of inputs and outputs:
  • If $n = 4$ and string is "Hello, world.", we get `Lipps, asvph`.
  • If $n = 15$ and string is "trololol", we get `igdadada`.
  • If $n = 7$ and string is "gxoxk zhggt zbox rhn ni", we get `never gonna give you up`.
  • If $n = 24$ and string is "I want breakfast!", we get `G uylr zpcyidyqr!`.
  • If $n = 13$ and string is "guvf grkg vf fhf", we get `this text is sus`.
  • Shortest program wins.
  • # Introduction
  • What is ROT13? It's basically a cipher sequence that changes a letter's value from the number chosen. If we use ROT1 on "games", we get "hbnft". The basic interpretation of ROT13 is iterating the value of a letter by 1 $n$ times. If you still don't understand, try using the [ROT13 website](https://rot13.com/)
  • # Challenge
  • Make a program that takes input of a number from 1 to 25, call it $n$, and takes input of a string. It could be any. Then, use $n$ to convert the string into ROT$n$ and output the result.
  • ### Examples of inputs and outputs:
  • If $n = 4$ and string is "Hello, world.", we get `Lipps, asvph`.
  • If $n = 15$ and string is "trololol", we get `igdadada`.
  • If $n = 7$ and string is "gxoxk zhggt zbox rhn ni", we get `never gonna give you up`.
  • If $n = 24$ and string is "I want breakfast!", we get `G uylr zpcyidyqr!`.
  • If $n = 13$ and string is "guvf grkg vf fhf", we get `this text is sus`.
  • Shortest program wins.
#2: Post edited by user avatar General Sebast1an‭ · 2021-07-28T02:15:27Z (over 3 years ago)
  • Basically ROT13
  • Caesar shift cipher
#1: Initial revision by user avatar General Sebast1an‭ · 2021-07-25T03:07:51Z (over 3 years ago)
Basically ROT13
Make a program that takes input of a number from 1 to 25, call it $n$, and takes input of a string. It could be any. Then, use $n$ to convert the string into ROT$n$ and output the result.

### Examples of inputs and outputs:

If $n = 4$ and string is "Hello, world.", we get `Lipps, asvph`.  
If $n = 15$ and string is "trololol", we get `igdadada`.  
If $n = 7$ and string is "gxoxk zhggt zbox rhn ni", we get `never gonna give you up`.  
If $n = 24$ and string is "I want breakfast!", we get `G uylr zpcyidyqr!`.  
If $n = 13$ and string is "guvf grkg vf fhf", we get `this text is sus`.

Shortest program wins.