Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

EncryptCredentials
EncryptString
MgCryptographyManager
STRING MgCryptographyManager::EncryptCredentials | ( | CREFSTRING | username,
|  | CREFSTRING | password |
| ) |  |  |
Encrypts credentials. .NET Syntax
`string EncryptCredentials(string username, string password);`
Java Syntax
`String EncryptCredentials(String username, String password);`
PHP Syntax
`string EncryptCredentials(string username, string password);`
  Parameters:
  | username | (String/string) Username to be encrypted.
  | password | (String/string) Password to be encrypted.
  Returns: Returns the encrypted credentials. Exceptions:
  | MgNullArgumentException |
  | MgInvalidArgumentException |
  | MgLengthException |
  | MgEncryptionException |

Comments or suggestions? Send us feedback.