You can use these functions to secure your apps saved data or send data securely across the web. Note that base64 encoded data is not cryptographically secure
C#using CI.WSANative.Security;
The key should be 32 random ascii characters long (i.e 32 bytes)
The initialisation vector should be 16 random ascii characters long (i.e 16 bytes)
C#WSANativeSecurity.SymmetricEncrypt("ffffffffffffffffffffffffffffffff", "aaaaaaaaaaaaaaaa", "Tesing123");
You must use the same key and initialise vector that were used to encrypt the data
C#WSANativeSecurity.SymmetricDecrypt("ffffffffffffffffffffffffffffffff", "aaaaaaaaaaaaaaaa", "SomeEncryptedData");
C#WSANativeSecurity.EncodeBase64("SomeData");
C#WSANativeSecurity.DecodeBase64("SomeBase64Data");