Encrypt: ππ
- Symbol πbehaves like a binary operator
- π encrypts what is on its rhs e.g. πm
- ππuses the key on its lhs to encrypt
- crypt = ππ m just like e.g. multiplication copies the resultant into the lhs of =
ππ m behaves like a product by the operator πincorporating is rhs and lhs into a product.
π ["rsa"] ;
m = "hi";
crypt = ππ m;
show crypt;
save as rsa;
Output: "crypt" βΆ "<|Cipher -> RSA, Data -> ByteArray[e8NAFZT07jHww/tYEYs0BuDBSExzBYfN7bengdYRZWO775EaDmiON6ZVXmfv1nFSigX1CWukYmclnWKOsZBo5iA9uuiS550DRmWgRpSoQ1FhBvmqYFqWWl+MeMe6O+p1UCRj2arjF6HEyrZ4zV/vjwRVlFRLtR2louoECfy/JjBNcOyPkboZ/P+zBbWNkkbbpyy/KooNGuKMKFr6524BhdI529f2fqmxOw8+burfw9ifPIk7/XHMn0lazzgssIhpGZSt3I2BNjTMz8wE3rm8AtYaXp2ZostVW8wCED7TieZbC6KvSlvqKkjYkkaZMxoNBRE9GfySATLS9mgjKTVKyA==], OriginalForm -> String, Padding -> PKCS1|>"