spec是什么抗生素?若用其作为棉花转基因体系的筛选,其浓度一般为多大?
很多人把抗生素称为消炎药,无论感冒、发烧还是拉肚子,自行判断症状像炎症,就会救助于他们眼中的“消炎药”。
因此也引来药师们的感慨:简直是“万病皆可抗生素”。
抗生素能抑制细菌生长或杀灭细菌,主要对细菌感染性疾病有疗作用。
临床常用的抗生素,主要包括β内酰胺类、氨基糖苷类、四环素类、氯霉素类、大环内酯类、糖肽类、抗真菌类、抗结核菌类等,其中前6类抗生素以抗细菌为主。
识别不同类型的抗生素有两个方法:
一是看药品说明书或药品标签中的“适应症”一栏,凡是写了用于治疗某细菌感染的疾病,就是抗生素;
二是看词头或词干,比如常见的头孢、西林、霉素、环素等。
抗菌药≠抗生素
抗菌药主要对细菌有抑制和杀灭作用,包括部分抗生素。
二者的概念有区别也有重叠,但不是包含关系。一些人工合成的药物,如左氧氟沙星就不属于抗生素范畴。
消炎药≠抗生素
消炎药,包括医学概念中的“非甾体抗炎药”,如阿司匹林等,还有糖皮质激素等。
顾名思义,消炎药可以消除炎症,但并不能杀灭病原微生物,而是直接针对炎症的,属于对症治疗药物。1.不能治疗感冒或流感等病毒感染
比如,感冒初期大都是病毒感染,只有当感冒时间拖久了,人体免疫力下降,出现细菌入侵,它才能发挥作用。
炎症的发病原因就更多更复杂了,细菌感染只是其中之一,医生会通过具体症状、检查结果来判断。
乱吃抗生素的后果:当抗生素进入人体内,发现并没有真正的致病细菌时,只能去杀灭那些原有与人体共存的“好”细菌(益生菌)了,这就有可能会破坏人体内原有的细菌平衡,导致其他疾病。
speclimit和controllimit区别
import java.security.Key;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.NoSuchAlgorithmException;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.X509EncodedKeySpec;
import javax.crypto.Cipher;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
public class RSATest {
public static void main(String[] args) {
try {
RSATest encrypt = new RSATest();
String encryptText = "encryptText";
//产生一对RSA密钥对
KeyPair keyPair = encrypt.generateKey();
//密钥对中的私钥
RSAPrivateKey privateKey = (RSAPrivateKey) keyPair.getPrivate();
//密钥对中的公钥
RSAPublicKey publicKey = (RSAPublicKey) keyPair.getPublic();
//加密数据(encryptTest)
byte[] e = encrypt.encrypt(publicKey, encryptText.getBytes());
//解密数据(e)
byte[] de = encrypt.decrypt(privateKey, e);
//打印输出加密的数据(e)
System.out.println(toHexString(e));
//打印输出解密的数据(de)
System.out.println(toHexString(de));
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* 生成长度为1024的密钥对
* @Date 2015-11-3,上午11:35:00
* @author hw
* @throws NoSuchAlgorithmException
* @return KeyPair
*/
public KeyPair generateKey() throws NoSuchAlgorithmException {
//初始化密码对生成器("RSA",密钥算法标识)
KeyPairGenerator keyPairGen = KeyPairGenerator.getInstance("RSA");
//初始化密码对生成器("1024", 密钥长度, 还支持2048,4096长度,第二个参数是个随机数)
keyPairGen.initialize(1024, new SecureRandom());
//使用密码对生成器,产生一对密钥
KeyPair keyPair = keyPairGen.generateKeyPair();
return keyPair;
}
/**
* 保存密钥对
* @Date 2015-11-3,上午11:37:11
* @author hw
* @param keyPair 密钥对
* @param publicKeyFile 公钥保存文件
* @param privateKeyFile 私钥保存文件
* @throws ConfigurationException
* @return void
*/
public void saveKey(KeyPair keyPair, String publicKeyFile,
String privateKeyFile) throws ConfigurationException {
PublicKey pubkey = keyPair.getPublic();
PrivateKey prikey = keyPair.getPrivate();
//保存公钥
PropertiesConfiguration publicConfig = new PropertiesConfiguration(
publicKeyFile);
publicConfig.setProperty("PULIICKEY", toHexString(pubkey.getEncoded()));
publicConfig.save();
//保存私钥
PropertiesConfiguration privateConfig = new PropertiesConfiguration(
privateKeyFile);
privateConfig.setProperty("PRIVATEKEY",
toHexString(prikey.getEncoded()));
privateConfig.save();
}
/**
* 加载密钥
* @Date 2015-11-3,上午11:39:06
* @author hw
* @param filename 密钥文件
* @param type 密钥类型:0:公钥 1:私钥
* @throws ConfigurationException
* @throws NoSuchAlgorithmException
* @throws InvalidKeySpecException
* @return Key
*/
public Key loadKey(String filename, int type)
throws ConfigurationException, NoSuchAlgorithmException,
InvalidKeySpecException {
//读取密钥文件
PropertiesConfiguration config = new PropertiesConfiguration(filename);
//构造密钥工厂
KeyFactory keyFactory = KeyFactory.getInstance("RSA",
new BouncyCastleProvider());
if (type == 0) {
//读取公钥数据
String privateKeyValue = config.getString("PULIICKEY");
//字符串格式公钥转公钥对象
PKCS8EncodedKeySpec priPKCS8 = new PKCS8EncodedKeySpec(
toBytes(privateKeyValue));
PrivateKey privateKey = keyFactory.generatePrivate(priPKCS8);
return privateKey;
} else {
//读取私钥数据
String privateKeyValue = config.getString("PRIVATEKEY");
//字符串格式私钥转私钥对象
X509EncodedKeySpec bobPubKeySpec = new X509EncodedKeySpec(
toBytes(privateKeyValue));
PublicKey publicKey = keyFactory.generatePublic(bobPubKeySpec);
return publicKey;
}
}
/**
* 加密数据
* @Date 2015-11-3,上午11:41:24
* @author hw
* @param publicKey 公钥
* @param data 要加密数据
* @return byte[]
*/
protected byte[] encrypt(RSAPublicKey publicKey, byte[] data) {
if (publicKey != null) {
try {
//密钥算法
Cipher cipher = Cipher.getInstance("RSA",
new BouncyCastleProvider());
//设置为:加密模式
cipher.init(Cipher.ENCRYPT_MODE, publicKey);
//加密源数据,并返回加密后数据
return cipher.doFinal(data);
} catch (Exception e) {
e.printStackTrace();
}
}
return null;
}
/**
* 解密数据
* @Date 2015-11-3,上午11:42:32
* @author hw
* @param privateKey 私钥
* @param raw 加密数据
* @return byte[]
*/
protected byte[] decrypt(RSAPrivateKey privateKey, byte[] raw) {
if (privateKey != null) {
try {
//密钥算法
Cipher cipher = Cipher.getInstance("RSA",
new BouncyCastleProvider());
//设置为:解密模式
cipher.init(Cipher.DECRYPT_MODE, privateKey);
//解密加密数据,并返回源数据
return cipher.doFinal(raw);
} catch (Exception e) {
e.printStackTrace();
}
}
return null;
}
/**
* byte[] 转 16进制字符串
* @Date 2015-11-3,上午11:43:40
* @author hw
* @param b
* @return String
*/
public static String toHexString(byte[] b) {
StringBuilder sb = new StringBuilder(b.length * 2);
for (int i = 0; i
sb.append(HEXCHAR[(b[i] & 0xf0) >>> 4]);
sb.append(HEXCHAR[b[i] & 0x0f]);
}
return sb.toString();
}
/**
* 16进制字符串转byte[]
* @Date 2015-11-3,上午11:44:08
* @author hw
* @param s
* @return byte[]
*/
public static final byte[] toBytes(String s) {
byte[] bytes;
bytes = new byte[s.length() / 2];
for (int i = 0; i
bytes[i] = (byte) Integer.parseInt(s.substring(2 * i, 2 * i + 2),
16);
}
return bytes;
}
/** 16进制数 */
private static char[] HEXCHAR = { '0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
}
这两个区别如下:
1、物理含义不同:speclimit指的是根据客户的需求和公司产品的性能指标,而controllimit则是生产过程中找出的异常点。
2、设计侧重点不同:speclimit的侧重点在于设计,其目的是根据客户需求制定出符合标准的产品,而controllimit的侧重点在于生产过程,其目的是发现并调整过程存在的问题。
3、使用时机不同:speclimit在产品设计及制造前进行设定,而controllimit是在产品制造过程中进行的。
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!