Encrypt() public static method

public static Encrypt ( string plainText, string passPhrase ) : string
plainText string
passPhrase string
return string
Exemplo n.º 1
0
        public static AuthorizationViewModel EncryptAuthorization(AuthorizationViewModel auth)
        {
            if (auth.GuId != null)
            {
                auth.GuId = StringCipher.Encrypt(auth.GuId, EncryptKey);
            }

            return(auth);
        }
Exemplo n.º 2
0
        public static AuthRequestViewModel EncryptAuthRequest(AuthRequestViewModel auth)
        {
            if (auth.UserName != null)
            {
                auth.UserName = StringCipher.Encrypt(auth.UserName, EncryptKey);
            }

            return(auth);
        }
Exemplo n.º 3
0
 public static GPSCoordinateModel EncryptGPSCoordinate(GPSCoordinateModel gpscoord)
 {
     gpscoord.Latitude  = StringCipher.Encrypt(gpscoord.Latitude, EncryptKey);
     gpscoord.Longitude = StringCipher.Encrypt(gpscoord.Longitude, EncryptKey);
     return(gpscoord);
 }