Codificar com cifra Afim

Codifica a entrada com “Affine Cipher” de acordo com o padrão correspondente.

Entrada: TextoResultado: Texto

Entrada de texto

Execute para ver o resultado

Exemplos

The published ATTACK AT DAWN exercise

Use the reversible key a=5, b=8 for a historical substitution exercise. Five has a multiplicative inverse modulo 26.

Entrada

ATTACKATDAWN

Expected answer

IZZISGIZXIOV
a
5
b
8
A field notebook location

Use the reversible key a=5, b=8 for a historical substitution exercise. Five has a multiplicative inverse modulo 26.

Entrada

MEETATTHEBRIDGE

Expected answer

QCCZIZZRCNPWXMC
a
5
b
8
A toy release label

Use the reversible key a=5, b=8 for a historical substitution exercise. Five has a multiplicative inverse modulo 26.

Entrada

READYFORRELEASE

Expected answer

PCIXYHAPPCLCIUC
a
5
b
8
A historical-cipher puzzle clue

Use the reversible key a=5, b=8 for a historical substitution exercise. Five has a multiplicative inverse modulo 26.

Entrada

FOLLOWTHEWHITERABBIT

Expected answer

HALLAOZRCORWZCPINNWZ
a
5
b
8
A mixed-case help message

Use the reversible key a=5, b=8 for a historical substitution exercise. Five has a multiplicative inverse modulo 26.

Entrada

Send help now

Expected answer

Ucvx rclf vao
a
5
b
8
Affine Encode: invalid a & b (non-integer)

Entrada

some keys are shaped as locks. index[me]

Expected rejection

Message contains
The values of a and b can only be integers.
a
0.1
b
0.00001
Affine Encode: no effect

Entrada

some keys are shaped as locks. index[me]

Expected answer

some keys are shaped as locks. index[me]
a
1
b
0
Affine Encode: normal

Entrada

some keys are shaped as locks. index[me]

Expected answer

vhnl tldv xyl vcxelo xv qhrtv. zkolg[nl]
a
23
b
23

Ferramentas relacionadas

Criptografia / Codificação

Referência da operação

Ver a documentação técnica original (English)