Coder Social home page Coder Social logo

hk_encryptdemo's Introduction

HK_EncryptDemo

MD5,GTMBase64, SHA1,Base64 等几种加密算法的使用 /* *加密技术--字符串常用的实现过程 (MD5,Base64, SHA1)

加密流程 -- 开发中关键数据和信息的安全非常重要,比如账号、密码、银行卡号、身份证号等。需要前端加密后传给后台,后台确定用何种加密方式。

常用的加密算法 -- 常用的加密方法有:MD5,Base64, SHA1 Base64 -- Base64是开发中使用较频繁的加密算法(严格来说不是加密,而是编码) 1、Base是使用较为频繁的编码方式 2、可以将二进制数据转化成字符串 3、编码后的结果是由 a - z,A - Z,+ /64个不同的字符组成,以=结尾,但等号不是一定会出现的

MD5 --(对称加密) MD5加密称为“消息摘要算法第五版” 1、对输入的信息生成唯一的128位散列值(32个字符) 2、明文+加密算法+秘钥->秘文,秘文+秘钥 通过解密算法生成 明文 3、免费的,一般用在数字签名、口令加密和密码加密

SHA1是美国国家安全局设计的一套安全散列算法 1、对输入的信息生成唯一的140位散列值(40个字符) 2、安全性较高,使用频繁

*/

hk_encryptdemo's People

Contributors

hk13581836891 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.