C# Class RIM.VSNDK_Package.GlobalFunctions

Show file Open project: blackberry/VSPlugin

Public Properties

Property Type Description
bbndkPathConst string

Public Methods

Method Description
Decrypt ( string cipher ) : string

Decrypts a given string.

Keep in mind that the decrypted string remains in memory and makes your application vulnerable per se. If runtime protection is essential, SecureString should be used.

Encrypt ( string plainText ) : string

Encrypts a given password and returns the encrypted data as a base64 string.

This solution is not really secure as we are keeping strings in memory. If runtime protection is essential, SecureString should be used.

isOnline ( ) : bool

function to check if user is online. Needs to be online for UpdateManager to work.

Method Details

Decrypt() public static method

Decrypts a given string.
Keep in mind that the decrypted string remains in memory and makes your application vulnerable per se. If runtime protection is essential, SecureString should be used.
If /// is a null reference.
public static Decrypt ( string cipher ) : string
cipher string A base64 encoded string that was created /// through the or /// extension methods.
return string

Encrypt() public static method

Encrypts a given password and returns the encrypted data as a base64 string.
This solution is not really secure as we are keeping strings in memory. If runtime protection is essential, SecureString should be used.
If /// is a null reference.
public static Encrypt ( string plainText ) : string
plainText string An unencrypted string that needs /// to be secured.
return string

isOnline() public static method

function to check if user is online. Needs to be online for UpdateManager to work.
public static isOnline ( ) : bool
return bool

Property Details

bbndkPathConst public static property

public static string bbndkPathConst
return string