加密
Dreamer who
=== Happiness isn't something you experience; it's something you remember.
展开
-
spring 配置中,数据库相关信息如何加密放在属性文件中
spring 配置中,数据库相关信息如何加密放在属性文件中 项目中,我们一般会对一些配置信息加密放到属性文件,或者其他地方,比如数据库的密码或者url、用户名都可以加密放到属性文件内,在程序启动后,一般会有对应的解密机制,还原信息,去连接数据库等。 在spring框架中,读取属性配置的类那就是org.springframework.beans.factory.config原创 2015-10-02 13:13:24 · 3309 阅读 · 0 评论 -
java之Secure communication terminology
java之Secure communication terminologyThere are several terms that are used when working with secure communications. These include the following:Authentication: This is the process of verifyi原创 2016-04-16 10:56:41 · 6890 阅读 · 0 评论 -
java之Symmetric encryption techniques
java之Symmetric encryption techniquesSymmetric encryption usesa single key to encrypt and decrypt a message. This type of encryption is classified as either stream ciphers or block ciphers. Mor原创 2016-04-16 15:45:44 · 4411 阅读 · 0 评论 -
java之Asymmetric encryption techniques
java之Asymmetric encryption techniquesAsymmetric encryption uses a public and private key. The private key is held by one entity. The public key is made available to everyone. Data can be encry原创 2016-04-16 16:43:17 · 1237 阅读 · 0 评论 -
java之Secure hash functions
java之Secure hash functionsA secure hash function will generatea large number, called the hash value, when given a document of some sort. This document can be of almost any type. We will be usi原创 2016-04-16 20:44:44 · 2873 阅读 · 0 评论 -
什么,Base64 算法你用的哪个?不就一种算法实现吗
什么,Base64 算法你用的哪个?不就一种算法实现吗Base64算法最早主要是解决电子邮件的传输问题,由于当时的网关有个问题就是可能会度非ASCII码字符的二进制位做调整,导致用户收取的邮件变成乱码,所以就出现了Base64算法。算法思想见:https://zh.wikipedia.org/wiki/Base64 。经过Base64编码后的数据会比原始数据长点,为原来的4/3原创 2017-01-14 18:37:28 · 2084 阅读 · 0 评论 -
Base64 算法的应用举例
Base64 算法的应用举例1.密钥存储 写过加密解密的时候,我们都知道,API返回给我们的一般是字节数组,虽然字节数组会使得安全性有很大提升(犹如密码一样,java程序中的密码字段是使用字节数组,一般不使用string),但对于人类来说,可读性很不友好。在往日的项目中,我们一般使用的是把密钥经过Base64编码的字符串,便于我们存储、配置及传输给别人。具体代码例子,见:https:原创 2017-01-15 11:54:59 · 935 阅读 · 0 评论