Encrypt() публичный статический Метод

public static Encrypt ( string plainText, string passPhrase ) : string
plainText string
passPhrase string
Результат string
Пример #1
0
        public static AuthorizationViewModel EncryptAuthorization(AuthorizationViewModel auth)
        {
            if (auth.GuId != null)
            {
                auth.GuId = StringCipher.Encrypt(auth.GuId, EncryptKey);
            }

            return(auth);
        }
Пример #2
0
        public static AuthRequestViewModel EncryptAuthRequest(AuthRequestViewModel auth)
        {
            if (auth.UserName != null)
            {
                auth.UserName = StringCipher.Encrypt(auth.UserName, EncryptKey);
            }

            return(auth);
        }
Пример #3
0
 public static GPSCoordinateModel EncryptGPSCoordinate(GPSCoordinateModel gpscoord)
 {
     gpscoord.Latitude  = StringCipher.Encrypt(gpscoord.Latitude, EncryptKey);
     gpscoord.Longitude = StringCipher.Encrypt(gpscoord.Longitude, EncryptKey);
     return(gpscoord);
 }