menu

ASP.NET MVC

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Encryptor

    Show / Hide Table of Contents

    Class Encryptor

    Creates the new instance of the Encryptor class.

    Inheritance
    System.Object
    Encryptor
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.JavaScript
    Assembly: Syncfusion.EJ.dll
    Syntax
    public class Encryptor

    Constructors

    Encryptor()

    Declaration
    public Encryptor()

    Methods

    Decrypt(String, String, Byte[])

    Decrypts an encrypted text using specified password and salt.

    Declaration
    public static string Decrypt(string cipherText, string password, byte[] salt)
    Parameters
    Type Name Description
    System.String cipherText

    The text to decrypt.

    System.String password

    The password used to encrypt text.

    System.Byte[] salt

    The salt added to encrypted text.

    Returns
    Type Description
    System.String

    Encrypt(String, String, Byte[])

    Encrypts a clear text using specified password and salt.

    Declaration
    public static string Encrypt(string clearText, string password, byte[] salt)
    Parameters
    Type Name Description
    System.String clearText

    The text to encrypt.

    System.String password

    The password to create key for.

    System.Byte[] salt

    The salt to add to encrypted text to make it more secure.

    Returns
    Type Description
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved