I made the above script as a test and it works ok but i dont understand how the '^' works to get the original text encrypter after applying the $key. It must be soemthign withe bits i think. Do you know anything more on this?#!/usr/bin/perl $toBeEncrypted = "hi there"; $key = "nikos"; $encrypted = $toBeEncrypted ^ $key; print "encrypted = $encrypted\n"; $decrypted = $encrypted ^ $key; print "decrypted = $decrypted\n";
In reply to Simple Encryption question by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |