mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-02-12 19:22:45 +00:00
38 lines
896 B
C#
38 lines
896 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
using Notesnook.API.Interfaces;
|
|
using System.Runtime.Serialization;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Notesnook.API.Models
|
|
{
|
|
public class EncryptedData : IEncrypted
|
|
{
|
|
[JsonPropertyName("iv")]
|
|
[BsonElement("iv")]
|
|
[DataMember(Name = "iv")]
|
|
public string IV
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[JsonPropertyName("cipher")]
|
|
[BsonElement("cipher")]
|
|
[DataMember(Name = "cipher")]
|
|
public string Cipher
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[JsonPropertyName("length")]
|
|
[BsonElement("length")]
|
|
[DataMember(Name = "length")]
|
|
public long Length { get; set; }
|
|
|
|
[JsonPropertyName("salt")]
|
|
[BsonElement("salt")]
|
|
[DataMember(Name = "salt")]
|
|
public string Salt { get; set; }
|
|
}
|
|
}
|