The new UAP version and uap version have been released.
Recently, we updated the previously released blog Park UAP. At the request of many users, we added the login and Display account favorites functions and used the newly added APIs of the blog Park.
In the new version, you can log on to your blog garden account to view the favorites in the blog garden account.
You can also upload the previous versions to the favorites of the Microsoft account with one click (of course, you can also manually upload a part ).
In addition, we have improved the reading performance of articles and codes, as well as some display exceptions that may occur when UAP directly runs on win10 mobile.
The following are some Previews:
Adds the logon function on the left of the homepage. |
The original "add to Favorites" panel displays the "add to Favorites" and "Upload locally" buttons for the blog garden account. |
|
|
Repaired reading Interface The font size is more appropriate and the interface is more suitable for reading |
Previous versions of the reading Interface The font display is incorrect. The code is too small. |
When using APIs, we need to use RSA for encryption. WinRT supports using the public key generated by openSSL directly. We only need to reference these two namespaces, using Windows.Security.Cryptography.Core;using Windows.Security.Cryptography; AsymmetricKeyAlgorithmProvider p = AsymmetricKeyAlgorithmProvider.OpenAlgorithm(AsymmetricAlgorithmNames.RsaPkcs1);CryptographicKey key = p.ImportPublicKey(CryptographicBuffer.DecodeFromBase64String(CNBLOGS_PUBLIC_KEY));IBuffer rawUsername = CryptographicBuffer.ConvertStringToBinary(username, BinaryStringEncoding.Utf8);IBuffer rawPassword = CryptographicBuffer.ConvertStringToBinary(password, BinaryStringEncoding.Utf8);var enUsername = CryptographicEngine.Encrypt(key, rawUsername, null);var enPassword = CryptographicEngine.Encrypt(key, rawPassword, null); Then you can use the RSA encryption algorithm provided by WinRT. The signature of the encryption method is public static IBuffer Encrypt(CryptographicKey key, IBuffer data, IBuffer iv); The current program uses IBuffer in a centralized manner. Common encryption auxiliary methods can be directly implemented through the CryptographicBuffer class. They directly accept the IBuffer type. For example: public static IBuffer ConvertStringToBinary(System.String value, BinaryStringEncoding encoding);public static IBuffer DecodeFromBase64String(System.String value);public static System.String EncodeToBase64String(IBuffer buffer);public static IBuffer GenerateRandom(System.UInt32 length); You are welcome to update and experience the new version, and hope you can report the problems found during use to us :) This time we only released windows phone, and the store link is here: Windows Phone Store App link: Bytes |