? Windows 10 comes with a new feature that allows you to install the Openssh server and client, which allows us to access other machines such as Linux through the SSH client on the Windows machine, or access the Windows machine through the SSH client on other machines. . In this way, remote Windows command […]
Tag: nss
Touge-Using RAS encryption and decryption in openssl
Level 1: RSA encryption and decryption Use the OpenSSL command line to implement RSA encryption and decryption of text files. Create a clear text file hello.txt with the content GuetPython Use genrsa to generate a 1024-bit plaintext rsa private key privacy.pem, that is, an unencrypted private key. Use rsa to output the public key file […]
20.5 OpenSSL socket RSA encrypted transmission
The RSA algorithm can also be used for encrypted transmission, but although this type of encryption algorithm is very secure, it is usually not used for large amounts of data transmission. This is because the encryption and decryption process of the RSA algorithm involves a large number of mathematical operations. Especially modular exponentiation (that is, […]
OpenSSL implements SSL network communication
Certainly! Here are the C language programs for a simple OpenSSL client and server that can establish a secure communication channel between them: l in linux environment OpenSSL Server Program (server.c): #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> #include <sys/socket.h> #include <openssl/ssl.h> #include <openssl/err.h> #define CERT_FILE “server.pem” #define KEY_FILE “server.key” void init_openssl() […]
[NSSRound#6 Team]check(Revenge)
Article directory Test points tarfile file overwriting vulnerability (CVE-2007-4559) PIN calculation Problem solving process unexpected solution expected solution Test center tarfile file overwriting vulnerability (CVE-2007-4559) A directory traversal vulnerability in the extract, extractFile, and extractall functions in the tarfile module in Python allows a user-assisted remote attacker to traverse the directory and write/overwrite arbitrary files […]
Use the OpenSSL tool to write Bash scripts to encrypt and decrypt password plaintext
Use OpenSSL tools to encrypt and decrypt password plaintext Written By: Xinyao Tian Introduction This document describes a simple way to encrypt and decrypt passwords in a Bash script using the OpenSSL tool. BASE64 encryption and decryption script Use Base64 algorithm to encrypt password The script name is encryptPasswd.sh, and the script content is as […]
20.3 OpenSSL symmetric AES encryption and decryption algorithm
The AES algorithm is a symmetric encryption algorithm, whose full name is Advanced Encryption Standard. It is a block cipher that uses 128 bits as a block for encryption. The key length can be 128 bits, 192 bits or 256bits, thus providing different levels of security. This algorithm uses techniques such as substitution, substitution and […]
20.2 OpenSSL asymmetric RSA encryption and decryption algorithm
The RSA algorithm is an asymmetric encryption algorithm jointly invented by three mathematicians Rivest, Shamir and Adleman, named after them. Named with initials. The security of the RSA algorithm is based on the large number decomposition problem, that is, for a very large composite number, it is very difficult to decompose it into the product […]
openssl+RSA development example (including source code)
1. Introduction to RSA RSA (Rivest-Shamir-Adleman) is an asymmetric encryption algorithm jointly proposed by Ron Rivest, Adi Shamir and Leonard Adleman in 1977. It is the earliest algorithm for public key encryption and digital signatures. . The security of the RSA algorithm is based on the difficulty of factoring large numbers, that is, the problem […]
What should I do if I want to upgrade OpenSSH on 100 CentOS7 machines?
background ? There are now 100 Centos7 machines that need to upgrade OpenSSH to 8.3. What should I do? The operation of each machine obviously does not meet my style of fishing. Since the operation of each machine is the same, Ansible Roles has its place. Normal upgrade process First, rpmbuild generates the OpenSSH 8.3 […]