Encoding a message using a sample RAS key