The new UAP version and uap version have been released.

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.