分类 技术 下的文章
What is JSON Web Token?JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA or ECDSA. Although JWTs can be encrypted to also provide secrecy between parties, we will focus on signed tokens. Signed tokens ...
JSON Web Tokens介绍

JSON Web Tokens介绍

通常情况下,直接调用WebBrowser控件的时候默认是IE7内核,实在是不美观。using Microsoft.Win32; using System; using System.ComponentModel; namespace ClassLibrary { /// <summary> /// 设置Webbrowser控件所用IE内核版本 /// </summary> public class WebBrowserHelper { /// 修改注册表信息来兼容当前程序 /// /// </summary> public static void SetWebBrowserFeatures(int ieVersion) { // Win8及以上,默认浏览器IE10及以上 OperatingSystem os = Environment.OSVersion; ...
C#设置WebBrowser默认的IE内核

C#设置WebBrowser默认的IE内核

using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.Serialization; using System.Security.Cryptography; using System.Text; // // Copyright (c) 2006 Damien Miller <djm@mindrot.org> // Copyright (c) 2013 Ryan D. Emerle // // Permission to use, copy, modify, and distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE S...
BCrypt算法的C#实现

BCrypt算法的C#实现

TreeView本身不支持透明背景,重写WndProc以支持背景图片。using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; using System.ComponentModel; using System.Runtime.InteropServices; namespace MyControl { /// <summary> /// Displays a hierarchical collection of labeled items, each represented by a System.Windows.Forms.TreeNode. /// </summary> [ //Use the same attibutes as TreeView DesignerAttribute("System.Windows.Forms.Design.TreeViewDe...
winform中TreeView透明背景

winform中TreeView透明背景