Simple implementation of encryption in F#