Skip to content

Commit d731bd6

Browse files
fix: typo
1 parent dc2cf50 commit d731bd6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/en/ciphers/ROT13.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,20 @@
33
```ts
44
import { Cipher } from '@irfanshadikrishad/cipher'
55

6-
// Create a Playfair Cipher instance with a keyword
7-
const playfair = new Cipher.ROT13()
6+
// Create a rot13 cipher instance
7+
const rot13 = new Cipher.ROT13()
88

99
// Encrypt the text
10-
console.log(playfair.encrypt('Hello World!'))
10+
console.log(rot13.encrypt('Hello World!'))
1111
// Example Output: "Uryyb Jbeyq!"
1212

1313
// Decrypt the text
14-
console.log(playfair.decrypt('Uryyb Jbeyq!'))
14+
console.log(rot13.decrypt('Uryyb Jbeyq!'))
1515
// Output: "Hello World!"
1616
```
1717

18+
#### Substitution Swap Table
19+
1820
<table
1921
<tr>
2022
<td><strong>Input</strong></td>

0 commit comments

Comments
 (0)