-
Notifications
You must be signed in to change notification settings - Fork 21
Securing_Password
For security, the password is encrypted during runtime and is not stored as plain text.
o2pgen reads the password and token from either the command line or a file, encrypts them, and stores them in a SecureContainer class. Once the password and token are no longer needed, o2pgen clears them from memory and overwrites their contents with zeros to ensure that no trace of the password or token remains.
When a password is entered via the command line, o2pgen stores it as a SecureString and encrypts it. The password is decrypted at the point of use, but it is never stored as plain text. This ensures that the password remains secure even if the system is compromised.
To enter the password for o2pgen, use a single dash - or question mark ? as a placeholder. When prompted for the password, o2pgen will read characters from the console and mask them with asterisks for security.
-u user1 -p ?
OR use single dash -
as PlaceHolder
-u user1 -p -
After displaying the message Enter password:
on the screen, o2pgen waits for the user to enter the password using the keyboard, one character at a time. For security, the password is displayed on the screen as *****.
Once the password is entered, o2pgen stores the encrypted password in a secured container. When the password is needed, o2pgen decrypts it and then overwrites the contents of the password with zeros to ensure that it cannot be accessed from memory.
- home
- Announcing V6.0.0
- Features
- Getting started with c# generation
- Http Connection
- Using Parameter file
- User Defined Attributes
- Controlling c# code generation
- Model Filter
- Enable Nullable Reference type of c# 8
- Class with Init-Only Properties (c# 9)
- Generating Constructor
- Record-Type (c# 9)
- Name Map
- Securing Password
- Using Proxy Server
- Using Plugin Attributes
- Developing with OData2Poco
- Examples in dotnetfiddle.net
- CommandLine-Reference
- AttributeExamples
- typescript generation
- Help Screen
- How to
- New Feature 4.2.1
Samples of generated code: