Detailed process and implementation of Github third party login

1, Flow chart 2, Specific implementation steps I. create OAuth App First of all, we need to create an OAuth App. Click according to the steps below Fill in the information in turn, and then click Register application Then we can see that an id and password will be generated, which will be used later. Try not to let others see it (I'm he ...

Posted by labmixz on Fri, 14 Feb 2020 07:35:57 -0800

C × DES encryption and JAVA interworking

Problem description For the company's connection to the payment interface, data encryption needs to use DES encryption. The third-party payment interface decryption is the des decryption written by JAVA, which only provides JAVA demo. I have solved a problem of JAVA and C ා symmetric encryption before. Since both C ා and JAVA are developed by ...

Posted by plsanders on Fri, 14 Feb 2020 06:56:13 -0800

Kernel and driver registry

Article directory Registry operation Commonly used API Basic operation Open: Read: write Use of registry in driver Advanced operations - traverse registry Registry operation Similar to the way of application programming, the registry is a huge tree structure. Generally, the operation is to op ...

Posted by littlevisuals on Fri, 14 Feb 2020 01:53:35 -0800

Basic data structure example: stack, queue, linked list, data, dictionary, tree, etc

CatalogData structure: Stack queue Linked list3.1 one way list3.2 two way list3.3 reversal of one-way linked listarrayDictionary implementation principle5.1 hash table5.2 hash functiontree6.1 binary tree, full binary tree, complete binary tree6.2 hash tree6.3 B-tree/B+tree Stack stackStack, also known as stack, is a linear table with limited op ...

Posted by Kingy on Fri, 14 Feb 2020 00:51:27 -0800

Spring framework - Part 2

Chapter 1: Spring's IOC implementation of CRUD 1.1 - Requirements and technical requirements Requirement: realize CRUD operation of account Technology: Using spring's IoC to manage objects Using dbutils as a persistence layer solution Using c3p0 data source 1.2 - environment construction 1.2.1-Maven project import dependency <dependen ...

Posted by davinci on Thu, 13 Feb 2020 23:29:13 -0800

Shiro Simple Use

Shiro 1. Introduction Apache Shiro is a Java security (permissions) framework. Shiro can easily develop applications that are good enough not only for JavaSE environments, but also for JavaEE environments. Shiro can complete authentication, authorization, encryption, session management, Web integration, caching, and more. Download address: ht ...

Posted by jsim on Thu, 13 Feb 2020 21:10:28 -0800

Neat javascript code

variable 1. Use intuitive and meaningful variable names Bad: const yyyymmdstr = moment().format("YYYY/MM/DD"); Good: const currentDate = moment().format("YYYY/MM/DD"); 2. Use the same words for variables of the same type Bad: getUserInfo(); getClientData(); getCustomerRecord(); Good: getUser(); ...

Posted by faifas on Thu, 13 Feb 2020 14:24:58 -0800

[Java_22] JDK New

JDK 1.8 New 1. Functional interface 1. Functional interface (1) Concepts *Interfaces with only one abstract method (2) Format @FunctionalInterface //Use this comment to determine if the interface is a functional interface. public class class name { public abstract return value method name (parameter list); } 2. Funct ...

Posted by starnol on Thu, 13 Feb 2020 12:55:40 -0800

50 lines of code for Chinese English translation

It takes about 4.2 minutes to read the text. Nowadays, more and more attention is paid to English ability. If you know English, you will come into contact with a larger world, and you will find more information. Especially for programmers, good programming materials come from English documents. Many of the translated versions i ...

Posted by kutte on Thu, 13 Feb 2020 11:44:12 -0800

Spring cloud -- config configuration center

Config Server configuration It provides centralized external configuration for microservices, and configuration server provides centralized external configuration for various environments of each microservice application. Configuration information and business code are managed separately to support dynamic configuration of multiple environm ...

Posted by EWaveDev on Thu, 13 Feb 2020 07:21:58 -0800