Virginia encryption algorithm implementation