cypher_encrypt 0.0.1
cypher_encrypt: ^0.0.1 copied to clipboard
A simple, flexible Dart package for encrypting and decrypting strings using a customizable substitution cypher. Supports custom sequences, variable steps, and works with any UTF-8 string.
example/cypher_encrypt_example.dart
import 'package:cypher_encrypt/cypher_encrypt.dart';
void main() {
final text = "Cypher the like button! π";
// Encrypt with steps = 3
final encrypted = cypherEncrypt(text, steps: 3);
print("Encrypted: $encrypted");
// Decrypt with same steps
final decrypted = cypherDecrypt(encrypted, steps: 3);
print("Decrypted: $decrypted");
// Wrong steps β wonβt match
final wrong = cypherDecrypt(encrypted, steps: 2);
print("Wrong decryption: $wrong");
}