Practical pre-statement The procedures (methods) involved in the article may be offensive and are only for security research and learning purposes. If readers use the information for other purposes, the user shall bear all legal and joint liability. The author of the article does not assume any legal and joint liability. 1. Introduction to BurpSuite […]
Tag: token
Inherit the Jwt token verification interceptor and generate interface documents through knife4j
sky: jwt: #Set the secret key used when encrypting jwt signatures admin-secret-key: itcast # Set jwt expiration time to 2 hours admin-ttl: 7200000 #Set the token name passed by the front end admin-token-name: token Get configuration class related attributes package com.sky.properties; import lombok.Data; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @Component @ConfigurationProperties(prefix = “sky.jwt”) @Data public class JwtProperties […]
Current limiting algorithm (counter, sliding time window, funnel, token) principle and code implementation
Article directory Preface 1. Counter (fixed time window) algorithm principle Code Problems 2. Sliding time window algorithm principle Code Problems 3. Leaky bucket algorithm principle Code Problems 4. Token bucket algorithm principle Code at last This article will explain these four current limiting algorithms in detail and output code examples for implementing the current limiting […]
Java uses Base64 to implement encryption and decryption of user information, which is equivalent to token
Directory 1 question 2 implementation 1 Question The springboot project needs to implement encryption and decryption of users After the user logs in, the user information is encrypted and stored in a cookie. When the page is accessed later, the cookie is carried to other pages and then decrypted. As long as the cookie expires, […]
Token non-aware refresh solution
Token unaware refresh solution Imagine that there is a super large form page, the user finally fills it out, and then clicks submit. At this time, the request interface actually returns 401, and then jumps to the login page. . . Then the user must have ten thousand idiots in his heart~~~ Therefore, it is […]
Not satisfied with the Token non-perceptual refresh solution on the Internet, I thought of a solution myself~
Big factory technology advanced front-end Node advanced Click above for Programmer Growth Guide and follow the official account Reply 1, join the advanced Node communication group Preface Imagine that there is a super large form page, the user finally fills it out, and then clicks submit. At this time, the request interface actually returns 401, […]
uglifyjs is not used, but UglifyJs error is reported when packaging; Unexpected token: name (raf) [main_25188b.js:121200,4]
Article directory background: Troubleshoot the error locally The local project package.json does not have UglifyJs dependencies installed. It is speculated that one of the dependencies of a plug-in itself contains UglifyJs UglifyJs errors can be solved by compiling with babel and converting es6 to es5. Change the configuration of babel-loader from exclude to include to […]
Flow control algorithms – counters, leaky buckets and token buckets
Flow control algorithm – counter, leaky bucket and token bucket 1. Why is the current limited? Current limiting is used in many scenarios to limit concurrency and request volume, such as flash sales and protecting your own system and downstream systems from being overwhelmed by huge traffic. 1.1 Give a chestnut Shuang Chenyue suddenly found […]
SpringBoot + Redis + Token solve the problem of interface idempotence
Foreword There are many ways to implement interface idempotence in SpringBoot, one of the most commonly used is the token + redis method. Below I will use a case code to help you understand this implementation logic. Principle The front end gets getToken() from the server -> the front end initiates a request -> brings […]
Solve pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 48, saw 2
Table of Contents Solve pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 48, saw 2 wrong reason Solution Resolve delimiter errors Solve the problem of non-standard data format Summarize Solve pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 48, saw 2 When using Pandas for data processing, you sometimes […]