Using PyCrypto with Spring Crypto/Spring Security Default Encoders

Spring Crypto Encryptor Details The Spring Crypto module is amazing. Secure defaults using standard interfaces really make it a pleasure to use, and with it being full tested and vetted, it also gives a develoepr the warm fuzzy feelings of nice Java security implentation. The standard interface is through the  org.springframework.security.crypto.encrypt.Encryptors class, defined (in version 3.2.0 here (the class API to which this blog post was written in July 2016). Spring Crypto uses AES256 encryption behind the scenes in its out of the box class setup; it's as easy as: In the above code snippet, the password  variable is a passcode, with the salt  variable used to create the AES key. It uses 256 bit encryption with the standard calls (depending on your JRE/Java Cryptography Extension (JCE) Setup, make sure to download the appropriate extension ). The default AESBytesEncryptor setup generates a 256 bit key (32 bytes) from a salted iteration done 1024 times. Another th

I've got the whole internet in my hands

Following up the xkcd.com "comic", a sweet idea to map the IP address range and their owners into a 2d map (where all adjacent values are grouped together), some bored people over at an email consulting company mapped out the IP addresses and activities using actual CAIDA 'whois' data in a scalable google map. CAIDA (The Cooperative Association for Internet Data Analysis) collected the data as seen in the huge png:

Huge CAIDA PNG

The scalable 'google maps' like viewing of the Hilbert Table is here:

http://thewholeinternet.wordtothewise.com/

I should be all Blog2.0 and post this as a trackback, but they don't have the option.

It is pretty neat to take data that you normally don't visualize, in this case the assigned DNS IP ranges of organizations and put them together in a way that can make the lay-person understand something new. In this case, you can see the companies that 'formed', or at least were the first to embrace, the internet and register whole top level domains! Meaning, of the 4-256 values in a typical IPv4 these companies have a whole first number to themselves.

For example, The Computer Science Corporation 'CSC' owns the whole 20.*.*.* address range. Crazy.

Comments

Popular posts from this blog

Spring Framework Sample Main Method

My Yahoo! Answers Science Post