Text UtilitiesLesson 114Free preview
Rotate Text
This lesson is part of Web Developer Tools · All levels
Summary
Rotate text shifts each letter as much as a certain position in the alphabet, similar to Caesar's code. Letters that pass through the end of the alphabet will return to the beginning, whereas non-alphabetic letters are usually left out. ROT13 is a special case with a shift of 13 that returns the original text if applied twice. These passwords are so easy to guess that they are not suitable for protecting sensitive data.
Key points
- Letters rotation calculated modulo 26
- Keep up capital letters, lowercase letters, and non-alphabetic characters
- ROT13 is rotation 13 and is reversible.
- Caesar's password is easy to crack and not secure encryption
- Numbers and punctuation are generally unchanged
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.