Crypto in a few lines of F#

Here is a very simple encryption / decryption code snippet using symmetric keys.
It’s ok for some low security usages.

Code is here: http://fssnip.net/iv

Usage:

//encrypt
SimpleCrypt.encr "data to be encrypted"

//decrypt
SimpleCrypt.decr "... encrypted data ...."
Advertisements

One thought on “Crypto in a few lines of F#

  1. Pingback: F# Weekly #21 2013 | Sergey Tihon's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s