Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IEncryptionService.cs

namespace Nop.Services.Security;

/// 
/// Encryption service
/// 
public partial interface IEncryptionService
{
    /// 
    /// Create salt key
    /// 
    /// Key size
    /// Salt key
    string CreateSaltKey(int size);

    /// 
    /// Create a password hash
    /// 
    /// Password
    /// Salk key
    /// Password format (hash algorithm)
    /// Password hash
    string CreatePasswordHash(string password, string saltKey, string passwordFormat);

    /// 
    /// Encrypt text
    /// 
    /// Text to encrypt
    /// Encryption private key
    /// Encrypted text
    string EncryptText(string plainText, string encryptionPrivateKey = "");

    /// 
    /// Decrypt text
    /// 
    /// Text to decrypt
    /// Encryption private key
    /// Decrypted text
    string DecryptText(string cipherText, string encryptionPrivateKey = "");
}