MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / rot13

Function rot13

cipher/rot13/rot13.go:14–16  ·  view source on GitHub ↗

rot13 is a special case, which is fixed the shift of 13, of the Caesar cipher

(input string)

Source from the content-addressed store, hash-verified

12
13// rot13 is a special case, which is fixed the shift of 13, of the Caesar cipher
14func rot13(input string) string {
15 return caesar.Encrypt(input, 13)
16}

Callers 2

assertRot13OutputFunction · 0.85
FuzzRot13Function · 0.85

Calls 1

EncryptFunction · 0.92

Tested by 2

assertRot13OutputFunction · 0.68
FuzzRot13Function · 0.68