Mutual authentication is not yet supported because SSL Client certificates are not supported.
Protect data at rest.
Data Encryption API uses an encryption key that is private to each specific device.
To encrypt sensitive data usign ProtectedData:
private void StoreCredentials(){ // Convert user name and password to a byte[]: byte[] secretByte= Encoding.UTF8.GetBytes(TBusername.Text + "||" + TBpassword.Text ); // Encrypt username using the Protect() method: byte[] protectedSecretByte = ProtectedData.Protect(secretByte, null); // Create file in app isolated storage: IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFileStream writestream = new IsolatedStorageFileStream(FilePath, System.IO.FileMode.Create, System.IO.FileSAccess.Write, file); // Write data to file: Stream writer = new StreamWriter(writestream).BaseStream; writer.Write(protectedSecretByte, 0, protectedSecretByte.Length); writer.Close(); writestream.Close(); }
To decrypt data:
// Retrieve protected data: IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFileStream readstream = new IsolatedStorageFileStream(FilePath, System.IO.FileMode.Create, System.IO.FileSAccess.Read, file); // Read data from file: Stream reader = new StreamReader(readstream).BaseStream; byte[] encryptedDataArray = new byte[reader.length]; reader.read(encryptedDataArray, 0, encryptedDataArray.Length); reader.Close(); readstream.Close();
http://www.windowsazure.com/en-us/develop/mobile/
using Microsoft.WindowsAzure.MobileServices;
Add Reference to Windows Phone > Extensions:
Windows Azure Mobile Services Managed Client
Authentication with Twitter.
Has multi-client support.
| Your first name: Your family name: Your location (city, country): Your Email address: |
Top of Page
Thank you! |