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:
"crypted" βΆ "<|Cipher -> RSA, Data -> ByteArray[ETlKQciE9Qxm3/+Cm1y8/RdCwREyqc84Od8IrJYGcjlm4RGXxs4oOXl2xEqbsdo1bcUk2C4HkhxeGWInbVPU1ipokp1P7zg3ffUWERID4/NA1waVzbeeFCq4rs6BjXB2/D/QGFYkNEPxkY9NA8OijjeoTWbfjs+DY+nZft585kzDiK8yPF6ZchkcZeLIAJwLi2xiZzGt4Ko1oOypFSyEYoOKljWnm7Iudr4cC/ec/9ap1psUkdDybcMHsFHIUO3OCU0PGIHS9FKR2nCPVTEZZunTLHzXCrHwWf+OZCoFt2qurFpLzD52s3C30hozalgVz5hgn28c9l9DiGmpuc7T0A==], OriginalForm -> String, Padding -> PKCS1|>"