Add a custom encryption algorithm and OpenSSL encryption algorithm to openssl.
I. Introduction
This document introduces how to add a custom encryption algorithm to OpenSSL by taking the custom algorithm EVP_ssf33 as an example.
Step 2
1. Modify crypto/object/objects.txt and register the algorithm OID as follows:
rsadsi 3 255 : SSF33 : ssf33
2. Go to the directory: crypto/object/and run the foll
. ipv4.ip _ forward = 0 => 1
Net. ipv4.conf. default. rp_filter = 1 => 0
2. Pix configuration file (VPN part ):
Access-list inside_outbound_nat0_acl permit ip "Nanjing IP segment" 255.255.255.0 "the IP segment of the company VPN user" 255.255.255.255.0
Access-list outside_cryptomap_20 permit ip "Nanjing IP segment" 255.255.255.0 "the IP segment of the company VPN user" 255.255.255.0
Nat (inside) 0 access-list inside_outbound_nat0_acl
Sysopt connection permit-ipsec
PHP uses OpenSSL for RSA encryption, if the plaintext to be encrypted is too long error, workaround: Encrypt the time 117 characters to encrypt once, and then all the cipher stitching into a cipher text, the decryption time needs 128 characters to decrypt, and then splicing into data.Encryption:/** * Encryption * @param $originalData * @return string|void * //*function Encrypt ($originalData) { if (Openssl_private_encrypt ($originalData, $encryptData, $this->rsaprivatek
Quick-x Data Encryption
I. Data Encryption
As long as quick encapsulation is used
Local crypto = require ("framework. crypto") -- algorithm encryption and decryption
To make
Function crypto. encryptxxtea (plaintext, key)Plaintext = tostring (plaintext)Key = tostring (key)Return cccrypto: encryptxxtea (plaintext, String. Len (plaintext), key, String. Len (key ))
Label: style blog color OS ar SP file Div on
// Calculate the text content md5qbytearray gapptextchecksum (const qstring text) {qcryptographichash crypto (qcryptographichash: MD5); crypto. adddata (text. tolocal8bit (); Return crypto. result (). tohex () ;}// calculate the md5qbytearray gappfilechecksum (const qstring filepath) {qcryptographichash
%97%E8%8A%82%E5%BA%8F) on different platforms, so rfc1321 wrote the encode/decode function in its "Appendix A-reference implementation, specify that md5.digest should use little_endian.
/* Encodes input (UINT4) into output (unsigned char). Assumes len is a multiple of 4. */static void Encode (output, input, len)unsigned char *output;UINT4 *input;unsigned int len;{ unsigned int i, j; for (i = 0, j = 0; j
The MD5 Wikipedia page mentioned above also has a line of code comment that should be in
Digital envelope encryption technology (algorithms combined with RSA and DES)
This algorithm combines the advantages of DES and RSA.
Principle:
!. The sender uses the des key to encrypt important data.
2. the sender uses the RSA public key to encrypt the des key.
3. Send messages
4. After receiving the message, the receiver uses the RSA private key to decrypt the encrypted des key.
5. The receiver uses the RSA key to decrypt the decrypted des key to decrypt important data.
In this article, we f
Add a custom encryption algorithm to OpenSSL
I. Introduction
This document introduces how to add a custom encryption algorithm to OpenSSL by taking the custom algorithm EVP_ssf33 as an example.
Step 2
1. Modify crypto/object/objects.txt and register the algorithm OID as follows:
Rsadsi 3 255: SSF33: ssf33
2. Go to the directory: crypto/object/and run the following command to generate the algorithm declarati
Transferred from: 82347473
1. CPU 100%, use top to view CPU
2. Delete the CPU or 100% of the process.
3. It is estimated that the process is hidden.
4. One execution task is added to the scheduled task.
5: Open the connection https://pastebin.com/raw/xbY7p5Tb to get the following content
6: Open the https://pastebin.com/raw/uuYVPLXd, found a base64 encoded string,
7. Use base64 to decode the content and obtain the following script content.
#! /Bin/bash
Shell =/bin/sh
Path =/usr/local/sb
password. It can be used to hide and save plaintext messages (such as passwords ).*/Public class MessageDigestExample {Public static void main (String [] args) throws Exception {If (args. length! = 1 ){System. err. println ("Usage: java MessageDigestExample text ");System. exit (1 );}
Byte [] plainText = args [0]. getBytes ("UTF8 ");
// Use getInstance ("algorithm") to obtain the message digest. Here the SHA-1 160-bit algorithm is used.MessageDigest messageDigest = MessageDigest. getInstance ("
Configuring IPSec Encryption with a shared key in the Cisco PIX Firewall involves four key tasks:
1. Preparing for IPSec
Preparing for IPSec involves determining detailed encryption policies, including determining the host and network we want to protect, and selecting an authentication method to determine detailed information about the IPSec peer, determine the IPSec features we need, and confirm that the existing access control list allows the IPSec data stream to pass;
1: determine an IKE (IKE
GRE over IPsecThis kind of thing can be basically NAT and all kinds of encryption Baotou thingsR1:!interface ETHERNET0/0NBSP;IP Address 192.168.12.1 255.255.255.0ip OSPF 1 area 0---------------- -----------------------------------------------------------------r2:crypto ISAKMP Policy 10 Authentication Pre-sharecrypto ISAKMP key Cisco address 192.168.34.4 !! Crypto IPSec Transform-set CCNA esp-des esp-md5-hma
experience) so Java has a lot of libraries, but I started using go. I don't have a sixth sense, but I think Go should be the weakest in the list of supported protocols. The good news is that Go has a built-in Crypto/rsa software package, and the bad news is that it only supports pkcs#1. During the study, I discovered a third-party library that supported Pkcs#8, and we had to stop at the program point and focus on: 1. Using a well-tested library 2 bui
password. It can be used to hide and save plaintext messages (such as passwords ).*/Public class MessageDigestExample {Public static void main (String [] args) throws Exception {If (args. length! = 1 ){System. err. println ("Usage: java MessageDigestExample text ");System. exit (1 );}Byte [] plainText = args [0]. getBytes ("UTF8 ");// Use getInstance ("algorithm") to obtain the message digest. Here the SHA-1 160-bit algorithm is used.MessageDigest messageDigest = MessageDigest. getInstance ("SH
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.