main function

void main()

Implementation

void main() {
  final text = "Hello PubDev";

  // Encrypt with steps = 3
  final encrypted = cypherEncrypt(text, steps: 3);
  print("Encrypted: $encrypted");

  // Decrypt with same steps = 3
  final decrypted = cypherDecrypt(encrypted, steps: 3);
  print("Decrypted: $decrypted");

  // ⚠️ Wrong steps → will not match
  final wrongDecryption = cypherDecrypt(encrypted, steps: 2);
  print("Wrong Decrypted: $wrongDecryption");
}