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

xkcd

The webcomic xkcd was recently featured on a popular tech website which I frequent. The author spoke at mit about his life and writing (and was interuppted by students), so I started reading the comic. Man, is it good.

I just started reading them, and got lots of the way through. Then I realized that there is a second level of awesome, in the img alt text tags. And then I read most of them again.

Some of my favs, in no particular order:

<img alt="how many links is he going to inline?!" src="./holla.jpg">

Comments

Unknown said…
http://xkcd.com/c55.html - incorporation of the identity matrix = sweet.
tmarthal said…
In that comic, the Fourier integral is more funny. Its like, its not convergent.

<3 aka lt3
Unknown said…
http://xkcd.com/c270.html
Unknown said…
http://xkcd.com/c257.html is also excellent.

Popular posts from this blog

Spring Framework Sample Main Method

My Yahoo! Answers Science Post