IsEncrypted() private method

private IsEncrypted ( string key ) : bool
key string
return bool
Esempio n. 1
0
            internal void WriteToJson(JsonWriter writer)
            {
                writer.WriteObjectStart();
                foreach (var kvp in this._values)
                {
                    string value = kvp.Value as string;
                    if (value == null)
                    {
                        continue;
                    }

                    writer.WritePropertyName(kvp.Key);

                    if (PersistenceManager.IsEncrypted(kvp.Key) || PersistenceManager.IsEncrypted(this._uniqueKey))
                    {
                        value = UserCrypto.Encrypt(value);
                    }

                    writer.Write(value);
                }
                writer.WriteObjectEnd();
            }