Skip to content

Instantly share code, notes, and snippets.

View raximovhayot's full-sized avatar
🎯
Focusing

raximovhayot

🎯
Focusing
View GitHub Profile
@raximovhayot
raximovhayot / Affin.java
Last active April 24, 2025 06:50
Affin amaliy
public class AffineCipherKeyWord {
private final int a;
private final int b;
private final String[] uzbekLatinAlphabet = {"A", "B", "D", "G", "I", "J", "K", "L", "D", "E", "F", "G'", "H", "J", "L", "M", "O'", "P", "R", "S", "T", "U", "V", "Z", "SH", "T", "U", "V", "X", "Y", "O'", "Q"};
private final int m = uzbekLatinAlphabet.length;
public AffineCipherKeyWord(String key) {
if (key != null && key.length() >= 2) {
int firstCharIndex = getIndex(String.valueOf(key.charAt(0)).toUpperCase());