Refer this link.
You need to convert the integer value to string for encryption.
Add the Page_Load event
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
int i = 10;
string encryptedInteger = this.Encrypt(i.ToString());
this.lblEncryptedText.Text = encryptedInteger;
}
}
Thank You.