Jump to content

Vigenère cipher: Difference between revisions

Simpler D code
(Updated D code)
(Simpler D code)
Line 462:
string encrypt(in string txt, in string key) pure /*nothrow*/
in {
assert(key.idup.removechars("^A-Z") == key);
} body {
string res;
Line 472:
string decrypt(in string txt, in string key) pure /*nothrow*/
in {
assert(key.idup.removechars("^A-Z") == key);
} body {
string res;
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.