SlideShare a Scribd company logo
1 of 5
Download to read offline
Rot13
● A letter substitution cipher
● Each letter in the alphabet has a numeric position (1 - 26)
○ A = Position 1
○ B = Position 2
○ Z = Position 26
● Replaces each word with the 13th letter after it
● After position (p) greater than 26, letters reset to p - 26
1
ROT13 Example (Word to Encode)
● MATH
2
Original Letter Original Letter
Alphabet Position
Add 13 to the
position
Encoded Letter
M 13 13 + 13 = 26 Z
A 1 1 + 13 = 14 N
T 20 20 + 13 = 33
33 - 26 = 7
G
H 8 8 + 13 = 21 U
Rot13 Reverse Translation
● Alphabet position - 13
○ If this value is negative, then subtract the absolute
value of it from 26
○ This is the new position
● Take the alphabet letter from the position
3
ROT13 Example (Encode to Word)
● ZNGU
4
Original Letter Original Letter
Alphabet Position
Subtract 13 from the
position
Encoded Letter
Z 26 26 - 13 = 13 M
N 14 14 - 13 = 1 A
G 7 7 - 13 = -6
26 - abs(-6) = 20
T
U 21 21 - 13 = 8 H
ROT13
https://www.mathcelebrity.com/rot13.php
2 options
1. Encrypt a word using ROT13
2. Decrypt a ROT13 word
5

More Related Content

What's hot

What's hot (20)

Depth First Search and Breadth First Search
Depth First Search and Breadth First SearchDepth First Search and Breadth First Search
Depth First Search and Breadth First Search
 
Dynamic Memory allocation
Dynamic Memory allocationDynamic Memory allocation
Dynamic Memory allocation
 
Skip lists (Advance Data structure)
Skip lists (Advance Data structure)Skip lists (Advance Data structure)
Skip lists (Advance Data structure)
 
Chap 5 Tree.ppt
Chap 5 Tree.pptChap 5 Tree.ppt
Chap 5 Tree.ppt
 
Best,worst,average case .17581556 045
Best,worst,average case .17581556 045Best,worst,average case .17581556 045
Best,worst,average case .17581556 045
 
Stacks in DATA STRUCTURE
Stacks in DATA STRUCTUREStacks in DATA STRUCTURE
Stacks in DATA STRUCTURE
 
Hash table
Hash tableHash table
Hash table
 
Asymptotic Notation
Asymptotic NotationAsymptotic Notation
Asymptotic Notation
 
Data Structure and Algorithms Arrays
Data Structure and Algorithms ArraysData Structure and Algorithms Arrays
Data Structure and Algorithms Arrays
 
Logical micro-operations
Logical micro-operationsLogical micro-operations
Logical micro-operations
 
The Stack And Recursion
The Stack And RecursionThe Stack And Recursion
The Stack And Recursion
 
Counting Sort
Counting SortCounting Sort
Counting Sort
 
14 Skip Lists
14 Skip Lists14 Skip Lists
14 Skip Lists
 
Data structure tries
Data structure triesData structure tries
Data structure tries
 
Arrays and Strings
Arrays and Strings Arrays and Strings
Arrays and Strings
 
Bfs dfs
Bfs dfsBfs dfs
Bfs dfs
 
Hashing
HashingHashing
Hashing
 
Caesar cipher
Caesar cipherCaesar cipher
Caesar cipher
 
Stacks,queues,linked-list
Stacks,queues,linked-listStacks,queues,linked-list
Stacks,queues,linked-list
 
Evaluation of postfix expression
Evaluation of postfix expressionEvaluation of postfix expression
Evaluation of postfix expression
 

More from Don Sevcik

More from Don Sevcik (20)

What is a variable
What is a variableWhat is a variable
What is a variable
 
Math Celebrity Pitch Deck
Math Celebrity Pitch DeckMath Celebrity Pitch Deck
Math Celebrity Pitch Deck
 
Unit Cost Calculation
Unit Cost CalculationUnit Cost Calculation
Unit Cost Calculation
 
Forward Rate
Forward RateForward Rate
Forward Rate
 
Floor Function
Floor FunctionFloor Function
Floor Function
 
How To Pass The ACT Exam and SAT Exam Studying 20 Minutes Per Day
How To Pass The ACT Exam and SAT Exam Studying 20 Minutes Per DayHow To Pass The ACT Exam and SAT Exam Studying 20 Minutes Per Day
How To Pass The ACT Exam and SAT Exam Studying 20 Minutes Per Day
 
ACT and SAT Exam Mastery Toolkit
ACT and SAT Exam Mastery ToolkitACT and SAT Exam Mastery Toolkit
ACT and SAT Exam Mastery Toolkit
 
Literal Equations
Literal EquationsLiteral Equations
Literal Equations
 
How to Find a Cartesian Product
How to Find a Cartesian ProductHow to Find a Cartesian Product
How to Find a Cartesian Product
 
Estimate Square Root Calculator
Estimate Square Root CalculatorEstimate Square Root Calculator
Estimate Square Root Calculator
 
How To Calculate Grade Point Average (GPA)
How To Calculate Grade Point Average (GPA)How To Calculate Grade Point Average (GPA)
How To Calculate Grade Point Average (GPA)
 
Divisibility Rules for 2-11
Divisibility Rules for 2-11Divisibility Rules for 2-11
Divisibility Rules for 2-11
 
Digit sum method
Digit sum methodDigit sum method
Digit sum method
 
Variation
VariationVariation
Variation
 
Kinematic equations
Kinematic equationsKinematic equations
Kinematic equations
 
How to Prove and Apply De Morgan's Laws
How to Prove and Apply De Morgan's LawsHow to Prove and Apply De Morgan's Laws
How to Prove and Apply De Morgan's Laws
 
How To Write Set Notation
How To Write Set NotationHow To Write Set Notation
How To Write Set Notation
 
Sum of consecutive integers
Sum of consecutive integersSum of consecutive integers
Sum of consecutive integers
 
Turn Anonymous Website Traffic Into Prospects In the Buying Cycle
Turn Anonymous Website Traffic Into Prospects In the Buying CycleTurn Anonymous Website Traffic Into Prospects In the Buying Cycle
Turn Anonymous Website Traffic Into Prospects In the Buying Cycle
 
Blockchain Insurance Benefits
Blockchain Insurance BenefitsBlockchain Insurance Benefits
Blockchain Insurance Benefits
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Recently uploaded (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

Rot 13

  • 1. Rot13 ● A letter substitution cipher ● Each letter in the alphabet has a numeric position (1 - 26) ○ A = Position 1 ○ B = Position 2 ○ Z = Position 26 ● Replaces each word with the 13th letter after it ● After position (p) greater than 26, letters reset to p - 26 1
  • 2. ROT13 Example (Word to Encode) ● MATH 2 Original Letter Original Letter Alphabet Position Add 13 to the position Encoded Letter M 13 13 + 13 = 26 Z A 1 1 + 13 = 14 N T 20 20 + 13 = 33 33 - 26 = 7 G H 8 8 + 13 = 21 U
  • 3. Rot13 Reverse Translation ● Alphabet position - 13 ○ If this value is negative, then subtract the absolute value of it from 26 ○ This is the new position ● Take the alphabet letter from the position 3
  • 4. ROT13 Example (Encode to Word) ● ZNGU 4 Original Letter Original Letter Alphabet Position Subtract 13 from the position Encoded Letter Z 26 26 - 13 = 13 M N 14 14 - 13 = 1 A G 7 7 - 13 = -6 26 - abs(-6) = 20 T U 21 21 - 13 = 8 H
  • 5. ROT13 https://www.mathcelebrity.com/rot13.php 2 options 1. Encrypt a word using ROT13 2. Decrypt a ROT13 word 5