Encrypt() public method

public Encrypt ( byte data, int offset, int length ) : byte[]
data byte
offset int
length int
return byte[]
Exemplo n.º 1
0
        public static byte[] Encrypt(string fingerprint, byte[] data, int offset, int length)
        {
            string fingerprintLower = fingerprint.ToLower();

            if (!serverKeys.ContainsKey(fingerprintLower))
            {
                return(null);
            }

            RSAServerKey key = serverKeys[fingerprintLower];

            return(key.Encrypt(data, offset, length));
        }