public static ImageContent DecryptImageContent(EncryptedImageContent encryptedContent, string password) { ImageContent contentToReturn = new ImageContent(); contentToReturn.index = encryptedContent.index; contentToReturn.image = ImageConversion.Base64ToImage(StringCipher.Decrypt(encryptedContent.encryptedImage, password)); contentToReturn.time = StringCipher.Decrypt(encryptedContent.time, password); return(contentToReturn); }