强加密RNGCryptoServiceProvider

.net RNGCryptoServiceProvider 对应 java SecureRandom

 

public class SecureRandomextends Random 

This class provides a cryptographically strong random number generator (RNG). Many implementations are in the form of a pseudo-random number generator (PRNG), which means they use a deterministic algorithm to produce a pseudo-random sequence from a true random seed. Other implementations may produce true random numbers and yet others may use a combination of both techniques.

 

http://docs.oracle.com/javase/1.5.0/docs/api/java/security/SecureRandom.html

 

posted on 2015-03-24 09:36  jiahuafu  阅读(1527)  评论(0编辑  收藏  举报

导航