Method Crypto.RSA()->encrypt() Method encrypt string encrypt(string s, function(int:string)|void r) Description Pads the message s with rsa_pad type 2, signs it and returns the signature as a byte string. Parameter r Optional random function to be passed down to rsa_pad.