Skip to content

delaneyj/dart-rc4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

RC4 symmetric (drop frame) implementation base on previous work for BitFlip Games. Used when you need a simple but de/encryption that doesn't need the rigors of public key encryption.

Sample

const String key = "This is a test";
const String message = "Attack at dawn!";

RC4 rc4 = new RC4(key);
var encrypted = rc4.encode(message);
var decrypted = rc4.decode(encrypted);

print("Encrypted: $encrypted");
print("Decrypted is same as message: ${decrypted == message}");

About

A RC4-drop implementation for Dart.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages