示例#1
0
    internal static string MD5HashWithPrivateSalt(string str)
    {
        var toReturn = MD5PasswordHelper.HexDeriveUsingUTF16(str, SharedKeys.PrivateSalt());

        OSTrace.Debug("MD5HashWithPrivateSalt returned:" + toReturn);
        return(toReturn);
    }
示例#2
0
        public PSWorkspaceKeys(SharedKeys keys)
        {
            if (keys == null)
            {
                throw new ArgumentNullException("keys");
            }

            this.PrimarySharedKey   = keys.PrimarySharedKey;
            this.SecondarySharedKey = keys.SecondarySharedKey;
        }
 protected override string InnerApplyAlgorithm(string value)
 {
     return(SymmRC4CryptHelper.Encrypt(value, SharedKeys.SettingsWeakSymmetricKey()));
 }
 protected override string InnerDecrypt(string encryptedValue)
 {
     return(SymmRC4CryptHelper.Decrypt(encryptedValue, SharedKeys.SettingsWeakSymmetricKey()));
 }
 protected override string GetKeyWithoutUsingCache()
 {
     return(PasswordHelper.DeriveKeyFromSecret(SharedKeys.ConfidentialInformationSymmetricKey(), 256 / 8));
 }
 internal static string MD5HashWithPrivateSalt(string str)
 {
     return(MD5PasswordHelper.HexDeriveUsingUTF16(str, SharedKeys.PrivateSalt()));
 }