Article directory Preface 1. Check uhttpd installation 2. Deploy the web site 3. Install cpolar intranet penetration 4. Configure remote access address 5. Configure fixed remote address Foreword uhttpd is a web server written from scratch by OpenWrt/LuCI developers. It aims to become an excellent, stable, lightweight task HTTP server suitable for embedded devices, and […]
Tag: public
Python generates a pair of RSA keys and saves the public and private keys as .pem files respectively. Use the public key in the generated RSA key pair to encrypt the data, and then use the private key to decrypt. Convert RSA’s public key exponent (E) and modulus (N) to .pem format
You can use the cryptography library to generate a pair of RSA keys and save the public and private keys as .pem files respectively. Here is a sample code: from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa # Generate RSA key pair private_key = rsa.generate_private_key( public_exponent=65537, key_size=2048, backend=default_backend() ) # Get […]
Use Nodejs to build a simple web page and achieve public network access
Table of Contents Preface 1. Install Node.js environment 2. Create a Node.js application 3. Install Cpolar intranet penetration to achieve public network access to Nodejs services 3.1 Register cpolar account 3.2 Download cpolar client 3.3 Create tunnel mapping local port 4. Fixed public network remote address Foreword Node.js is a web application framework built on […]
Quickly build a website on Linux and use intranet penetration to achieve public network access to the Pagoda Panel
Article directory Preface 1. Environment installation 2. Install cpolar intranet penetration 3. Intranet penetration 4. Fixed http address 5. Configure the second-level subdomain name 6. Create a test page Foreword As a simple and easy-to-use server operation and maintenance management panel, Pagoda Panel supports Linux/Windows systems. We can use it to configure LAMP/LNMP environments, websites, […]
How to convert public and private keys to keystore
Step 1: Generate Keystore package keyTools; import java.io.FileOutputStream; import java.math.BigInteger; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.KeyStore; import java.security.Provider; import java.security.Provider.Service; import java.security.Security; import java.security.cert.Certificate; import java.security.cert.X509Certificate; import java.util.Date; import java.util.Iterator; import java.util.Set; import org.bouncycastle.jce.X509Principal; import org.bouncycastle.x509.X509V3CertificateGenerator; public class PKCS12KeyStoreExample {<!– –> public static void genP12() {<!– –> try {<!– –> // Generate key pair KeyPairGenerator […]
Nodejs quickly builds a simple HTTP server and publishes remote access to the public network
Article directory Preface 1. Install Node.js environment 2. Create node.js service 3. Access node.js service 4.Intranet penetration 4.1 Install and configure cpolar intranet penetration 4.2 Create tunnel mapping local port 5. Fixed public network address Before I start the text, I would like to recommend a website to you. A few days ago, I discovered […]
[vscode remote development] Use intranet penetration to achieve remote access in a public network environment
Article directory Preface 1. Install OpenSSH 2. vscode configure ssh 3. LAN test connection to remote server 4. Public network remote connection 4.1 Install cpolar intranet penetration on ubuntu 4.2 Create tunnel mapping 4.3 Test public network remote connection 5. Configure a fixed TCP port address 5.1 Reserve a fixed TCP port address 5.2 Configure […]
Front-end public Js function library usage guide
Article directory @[toc] Front-end public Js function library usage guide Start 1. Access common.js 2. Constructor exposure method reference 3. Initialization constructor Utility function network request 1. Request network request 2. setAuthData sets the interface call credentials WeChat JSSDK 1. wechatConfig WeChat Jssdk authentication method 2. shareConfig configures WeChat sharing 3. getSites Get user location […]
Public field automatic filling, dish management
1. Public field filling 1.1. Problem analysis 1.2. Implementation ideas 1.3, Code Development 1.3.1, Custom annotations import com.sky.enumeration.OperationType; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.METHOD) @Retention (RetentionPolicy.RUNTIME) public @interface AutoFill { //Specify the type of database operation through the enumeration type //UPDATE INSERT OperationType value(); } 1.3.2, Aspect class import com.sky.annotation.AutoFill; import com.sky.constant.AutoFillConstant; […]