program shows the name, size, and size of the content in the jar file you specified (which is somewhat similar to specifying "T" and "V" options when using the jar command).
Import java.io.*;
Import java.util.*;
Import java.util.jar.*;
public class Jardir {public
static void Main (String args[])
throws IOException {
if (Args.len Gth!= 1) {
System.out.println (
"Please provide a JAR filename");
System.exit ( -1);
}
jarfile jarfile = new Jarfile (args[0]);
enumeration enu
Case topology Map
Cisco (3640) realizes
Step 1: The basic configuration of a router
A (config) #do Sho run
Building configuration ...
Current configuration:1410 bytes
!
Version 12.4
Service Timestamps Debug DateTime msec
Service Timestamps log datetime msec
No service password-encryption
!
Hostname A
!
Boot-start-marker
Boot-end-marker
!
!
No AAA New-model
Memory-size Iomem 5
!
!
IP CEF
No IP domain Lookup
IP domain name lab.local
!
This document describes the IPSec configuration between the router and the Cisco firewall. The traffic between the headquarters and the branch office uses the private IP address, when the branch's local area network user accesses the Internet, needs to carry on the address conversion.
Network topology
Configuration
Define the traffic to the router:
Access-list IPSec permit IP 10.1.1.0 255.255.255.0 10.2.2.0 255.255.255.0
!---traffic to the router does not address conversion
Access-list Nonat Per
revaluation name: USD Revaluation
2 Input Description
3 Select all currencies or a single currency, in the case of a single currency, you need to enter a currency.
4 Select exchange rateA) Period Rates (Period exchange rate): If you select it, you must set the exchange rate during the revaluation. Path: Gl->setup->currencies->rates->periodNote: The revaluation period exchange rate is not set, and the "Prog
ArbitragePOJ-2240
Arbitrage is the use of discrepancies in currency exchange rates to transform one unit of a currency into more than one UN It's the same currency. For example, suppose that 1 US Dollar buys 0.5 British pound, 1 British pound buys 10.0 French francs, and 1 French franc Buys 0.21 US dollar. Then, by converting currencies, a clever trader can start with 1 US dollar and buy 0.5 * 10.0 * 0.21 = 1.05 US dollars, MA King a profit of 5 perce
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 ("
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.