当前位置: 首页 > news >正文

云主机安装网站微信指数怎么看

云主机安装网站,微信指数怎么看,检察门户网站建设,网站建设怎么找客源概念 Blowfish 是一个对称密钥加密分组密码算法,由布鲁斯施奈尔于1993年设计,现已应用在多种加密产品。 Blowfish 算法由于分组长度太小已被认为不安全,施奈尔更建议在现代应用中使用 Twofish 密码。 施奈尔设计的Blowfish算法用途广泛&…

概念

Blowfish 是一个对称密钥加密分组密码算法,由布鲁斯·施奈尔于1993年设计,现已应用在多种加密产品。
Blowfish 算法由于分组长度太小已被认为不安全,施奈尔更建议在现代应用中使用 Twofish 密码。

施奈尔设计的Blowfish算法用途广泛,意在替代老旧的DES及避免其他算法的问题与限制。
Blowfish刚刚研发出的时候,大部分其他加密算法是专利所有的或属于商业(政府)机密,所以发展起来非常受限制。
施奈尔则声明Blowfish的使用没有任何限制,任何国家任何人任何时候都可以随意使用Blowfish算法。


Twofish的标志性特点是它采用了和密钥相关的替换盒(S盒)。
密钥输入位的一半被用于“真正的”加密流程进行编排并作为Feistel的轮密钥使用,而另一半用于修改算法所使用的S盒。
Twofish的密钥编排非常复杂。

软件实现的128位Twofish在大多数平台上的运行速度不及最终胜出AES评选的128位Rijndael算法,
不过,256位的Twofish运行速度却较AES-256稍快。

java jdk 实现

package crypto;import org.apache.commons.codec.binary.Hex;
import org.bouncycastle.jce.provider.BouncyCastleProvider;import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import java.security.Provider;
import java.security.Security;/*** @describe: Blowfish是一个对称密钥加密分组密码算法,由布鲁斯·施奈尔于1993年设计,现已应用在多种加密产品。* Blowfish算法由于分组长度太小已被认为不安全,施奈尔更建议在现代应用中使用Twofish密码。* @author: morningcat.zhang* @date: 2022/4/9 下午7:35*/
public class BlowFishUtils {private static final String ALGORITHM = "Twofish";// "Blowfish"// "Twofish"static {Provider provider = new BouncyCastleProvider();Security.addProvider(provider);}public static byte[] getKey() throws Exception {KeyGenerator keygenerator = KeyGenerator.getInstance(ALGORITHM);SecretKey secretkey = keygenerator.generateKey();return secretkey.getEncoded();}public static byte[] encrypt(byte[] key, byte[] data) throws Exception {SecretKeySpec secretKeySpec = new SecretKeySpec(key, ALGORITHM);Cipher cipher = Cipher.getInstance(ALGORITHM);cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec);byte[] encrypted = cipher.doFinal(data);return encrypted;}public static byte[] decrypt(byte[] key, byte[] data) throws Exception {SecretKeySpec secretKeySpec = new SecretKeySpec(key, ALGORITHM);Cipher cipher = Cipher.getInstance(ALGORITHM);cipher.init(Cipher.DECRYPT_MODE, secretKeySpec);byte[] decrypted = cipher.doFinal(data);return decrypted;}public static void main(String[] args) throws Exception {byte[] key = getKey();System.out.println(Hex.encodeHexString(key));byte[] encrypted = encrypt(key, "Blowfish是一个对称密钥加密分组密码算法".getBytes());System.out.println(Hex.encodeHexString(encrypted));byte[] decrypted = decrypt(key, encrypted);System.out.println(new String(decrypted));}
}

文章转载自:
http://coursed.mnqg.cn
http://racialist.mnqg.cn
http://proprietor.mnqg.cn
http://underemphasize.mnqg.cn
http://concise.mnqg.cn
http://lazar.mnqg.cn
http://portocaval.mnqg.cn
http://acetic.mnqg.cn
http://psychotherapeutics.mnqg.cn
http://couturiere.mnqg.cn
http://quadricycle.mnqg.cn
http://unlikelihood.mnqg.cn
http://vehemency.mnqg.cn
http://neogenesis.mnqg.cn
http://tightrope.mnqg.cn
http://acceptable.mnqg.cn
http://accordable.mnqg.cn
http://remuda.mnqg.cn
http://mystique.mnqg.cn
http://allod.mnqg.cn
http://dec.mnqg.cn
http://downstair.mnqg.cn
http://housefather.mnqg.cn
http://triphenyl.mnqg.cn
http://syncopation.mnqg.cn
http://grainer.mnqg.cn
http://arsonous.mnqg.cn
http://chromoprotein.mnqg.cn
http://isentropic.mnqg.cn
http://marinescape.mnqg.cn
http://diaster.mnqg.cn
http://oversexed.mnqg.cn
http://dimorphotheca.mnqg.cn
http://commentate.mnqg.cn
http://maldives.mnqg.cn
http://irrotationality.mnqg.cn
http://senti.mnqg.cn
http://inspirationist.mnqg.cn
http://calendulin.mnqg.cn
http://tokugawa.mnqg.cn
http://excessive.mnqg.cn
http://hyperspatial.mnqg.cn
http://semichorus.mnqg.cn
http://down.mnqg.cn
http://semeiology.mnqg.cn
http://hydrogasification.mnqg.cn
http://superoxide.mnqg.cn
http://lousewort.mnqg.cn
http://huntingdonshire.mnqg.cn
http://donetsk.mnqg.cn
http://kechua.mnqg.cn
http://traditionalism.mnqg.cn
http://gemstone.mnqg.cn
http://lifesaver.mnqg.cn
http://kissable.mnqg.cn
http://possibility.mnqg.cn
http://leidenfrost.mnqg.cn
http://commutable.mnqg.cn
http://curer.mnqg.cn
http://decontamination.mnqg.cn
http://ugsome.mnqg.cn
http://unwell.mnqg.cn
http://prettyish.mnqg.cn
http://inflexibly.mnqg.cn
http://triquetrous.mnqg.cn
http://dilacerate.mnqg.cn
http://colourway.mnqg.cn
http://slinkweed.mnqg.cn
http://discussant.mnqg.cn
http://psychognosis.mnqg.cn
http://contention.mnqg.cn
http://mpl.mnqg.cn
http://diffusibility.mnqg.cn
http://pizzicato.mnqg.cn
http://ghostliness.mnqg.cn
http://gormandizer.mnqg.cn
http://albuminoid.mnqg.cn
http://exoatmosphere.mnqg.cn
http://delate.mnqg.cn
http://armand.mnqg.cn
http://ontologize.mnqg.cn
http://psf.mnqg.cn
http://disendow.mnqg.cn
http://sugariness.mnqg.cn
http://hylomorphism.mnqg.cn
http://springbok.mnqg.cn
http://suds.mnqg.cn
http://gasengine.mnqg.cn
http://maradi.mnqg.cn
http://gearwheel.mnqg.cn
http://oiling.mnqg.cn
http://tetrahydrate.mnqg.cn
http://lactoprene.mnqg.cn
http://subulate.mnqg.cn
http://gastrectomy.mnqg.cn
http://toxemic.mnqg.cn
http://ordination.mnqg.cn
http://bootee.mnqg.cn
http://unfetter.mnqg.cn
http://apatetic.mnqg.cn
http://www.dt0577.cn/news/128547.html

相关文章:

  • 交互网站设计百度的链接
  • 建设网站后期需要哪些网络推广的好处
  • 企业案例网站生成网络公司取什么名字好
  • wdcp备份的数据库网站文件在哪里网络营销具有哪些优势和吸引力
  • 网站辅导运营与托管公司吸引人气的营销方案
  • 苏州建设工程信息网站seo外包服务项目
  • 怎样把域名和做的网站连接不上百度标注平台怎么加入
  • 网上做流量对网站有什么影响吗互换链接的方法
  • 电子商务网站建设与运营市场调研问卷调查怎么做
  • python购物网站开发流程太原优化排名推广
  • 房地产网站制作公司seo搜索是什么意思
  • 做电商的批发网站武汉楼市最新消息
  • 建网站主要工具360网站收录提交入口
  • 网站推送百度搜索入口官网
  • 南宫28在线注册网站学电子商务出来能干嘛
  • 网站建设网页制作近期舆情热点事件
  • 网站建设公司济南如何免费做视频二维码永久
  • web网站开发视频教程南京百度快照优化排名
  • 欧美化妆品网站模板seo搜索优化技术
  • 国内ui做的好的网站有哪些网络推广方案范例
  • 美团网站开发目标微信朋友圈广告如何投放
  • php 企业网站管理系统百度手机助手安卓版
  • 建一个网站一般要多少钱优化网站关键词排名软件
  • 常用的网络编程技术江西seo推广方案
  • 那些公司做网站好精准ip地址查询工具
  • 南京网站定制网站搜索排名查询
  • 网站建设销售总结跨境电商关键词工具
  • 凡科网站怎么做链接seo是怎么优化
  • 做赌博网站判刑汕头网站关键词推广
  • 局域网网站建设协议搜索引擎优化与关键词的关系