ASP.NET C#: Encrypt a single integer value for storing in a hidden field RRS feed

  • Question

  • User-596225964 posted


    I have a single integer value (intOrderID) that I would like to easily encrypt so I can store it in a hidden field, and decrypt when needed by my methods.

    Originally I stored this integer value in a session variable, but this causes problems when the session expires.

    Can someone please point me in the right direction as I know next to nothing about encrypting data in C#? I've been Googling this for hours, without success.



    Friday, May 15, 2020 7:44 AM


All replies