示例#1
0
 public static string Encrypt(string plainString)
 {
     return(LosSerializer.Serialize(plainString, true));
 }
 /// <summary>
 /// Serializes a resource key using LosFormatter.
 /// </summary>
 /// <remarks>
 ///	The resource keys need to be serialized as they can be arbitrary objects.
 /// </remarks>
 /// <param name="key">The key to serialize.</param>
 /// <returns>The serialized key.</returns>
 private string SerializeResourceKey(object key)
 {
     return(LosSerializer.Serialize(key));
 }