TOTP introduction and simple implementation based on C ා

Intro TOTP is a time-based one-time password generation algorithm, which is composed of RFC 6238 Definition. Different from the event based one-time password generation algorithm HOTP TOTP is time-based and has the following relationship with HOTP: TOTP = HOTP(K, T) HOTP(K,C) = Truncate(HMAC-SHA-1(K,C)) Among them: T: T = (Current Unix time - ...

Posted by Yippee on Sun, 24 Nov 2019 13:04:35 -0800

Spring boot integrates Spring Security and uses Demo

https://start.spring.io/ generate SpringBoot project   The pom file should be me: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0 ...

Posted by jaku78 on Sun, 24 Nov 2019 11:22:30 -0800

Spring MVC response request processing

Article directory I. Basic operation How to respond to requests 1. ModelAndView mode 2. The server does not respond to the result to the client Returns a string 4. Return to a page Absolute path Relative path 5. Prefix and suffix Configure view resolver Redirect (add a redirect) HttpServletRequest and HttpServletResponse ...

Posted by diggysmalls on Sun, 24 Nov 2019 08:45:05 -0800

Qchar of QT (the most comprehensive explanation)

Reprinted from: https://www.cnblogs.com/retry/p/9328715.html QChar of QT QChar class is a class used to represent a character in Qt, which is implemented in QtCore shared library. The QChar class internally represents a character in 2-byte Unicode encoding. Coding //char type is a built-in type in c/c + +, which describe ...

Posted by pitn on Sun, 24 Nov 2019 08:11:07 -0800

Springboot -- build your own springboot project (with log configuration)

Using spring Initalizr to build spring boot in idea Click new item and select as shown in the figure After clicking next Click next, and then select as shown in the figure Selection path Click finish, as shown in the figure, delete what you don't want, and the project is completed Build a controller and start the project to see the returne ...

Posted by sureshmaharana on Sun, 24 Nov 2019 07:17:55 -0800

Microsoft Dynamics CRM bulk upload web resources (Unofficial WebResourceUtility) and replace entity icons

Background: Before last year, we could upload web resources in batches according to the directory WebResourceUtility. Yesterday, we found that it was useless. It was not very convenient to get the source code of WebResourceUtility and change it. I felt that the official code was too redundant and too long, which was not in line with my simple ...

Posted by thefury on Sun, 24 Nov 2019 06:17:38 -0800

Netty learning notes (10) - example of netty application

Originally, I wanted to learn about Netty components first, then learn about component applications. Then, learning more and more makes me feel weird. I always feel that there is something missing. I don't know how to use components when I learn them. Think about learning from Netty applications first. Own technology learning method: first ...

Posted by RMcLeod on Sun, 24 Nov 2019 06:00:06 -0800

Deep Interpretation of Java Thread Pool Design Ideas and Source Code Implementation

I believe everyone has read a lot of articles about thread pools, which are also necessary for interviews. If you still know a little after reading a lot of articles, I hope this article can really help you master Java thread pools. A major focus of this article is source code parsing, with a small amount of space to introduce thread pool desig ...

Posted by esscher on Sat, 23 Nov 2019 22:08:30 -0800

Htmalabilitypack + C as IP agent crawler

I. search for data and access as many IP proxy data as possible, and store the IP proxy pool 2. Filter the data from the agent pool and add the valid data to another table, and update it in time III. update IP proxy pool regularly Because the IP address of the website needs to be updated in real time, and the program needs to fi ...

Posted by paradigmapc on Thu, 21 Nov 2019 12:23:12 -0800

Android: in intent, start a new Activity explicitly through startActivity(Intent intent)

Intent: intention. It is generally used to start a new Activity. It can be divided into two types: explicit intent and implicit intent To display Intent is to directly use "class name" to specify which activity to start: Intent intent = new Intent (this, activity. Class); where activity.class is to specify the activity to start For ...

Posted by smsulliva on Thu, 21 Nov 2019 07:07:44 -0800