Skip to content

Commit 26860d5

Browse files
authored
Create CLASSDESCRIPTION.md
1 parent 2934fd3 commit 26860d5

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

CLASSDESCRIPTION.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# OSInfo
2+
The OSInfo namespace includes many classes that return information about the current OS installation. This includes the following:
3+
- Architecture (String and Int representation)
4+
- Name (If OS is Windows, MacOSX, Linux or Solaris)
5+
6+
# OSInfo.Winndows
7+
The OSInfo.Windows namespace includes many classes that return information about the current Windows installation. This includes the following:
8+
- Edition (String representation)
9+
- Name (String, ExpandedString and Enum representation) Also contains methods that will return the current and pending Computer Name.
10+
- Product Key (String representation)
11+
- Service Pack (String and Int representation)
12+
- User Info (Contains Registered Organization, Registered Owner, Logged In Username, and Current Domain Name)
13+
- Version (String and Int representation) Includes Main, Major, Minor, Build, Revision and Number (number is Major * 10 + Minor).
14+
15+
# HWInfo
16+
The HWInfo namespace includes many classes that return information about the current computer hardware. This includes the following:
17+
- BIOS (Release Date, Version and Vendor Name)
18+
- Network (Internal IP Address, External IP Address and Connection Status)
19+
- OEM (Vendor Name and Product Name)
20+
- Processor (Name and Number Of Cores)
21+
- RAM (Total Installed Ram Size)
22+
- Storage (System Drive Total Size, System Drive Free Space)
23+
24+
# ComputerInfo
25+
This class is an instantiated class that contains all the info in the OSInfo and HWInfo classes. It extends the HWInfo.Storage class to contain all reconized drives not just the system drive.
26+
27+
# SecurityTools
28+
The SecurityTools class contains methods surrounding hashing and encryption. This includes the following:
29+
- createSecureRandom() - Secure Random Number Generator
30+
- getFileHash(HashType type, String fileName) - Generates a file hash of the supplied filename via the selected hash type (MD5, SHA1, SHA256, SHA384 and SHA512)
31+
- saveToFile(String hash, String fileName) - Saves a hash to a text file.
32+
- saveToFile(Key key, String fileName) - Saves a RSA key to a text file.
33+
- readFromFile(String fileName) - Reads a hash or RSA key from a text file.
34+
- CreateSalt(int size) - Creates a RNG salt for use in password hashing using the supplied length.
35+
- CreateHash(String passwordToHash, String salt) - Creates a SHA512 password hash with the supplied password and salt.
36+
- CheckHashesMatch(String enteredPassword, String databasePassword, String databaseSalt) - Checks if the supplied password matches the supplied database password and salt. This can be used to verifiy passwords for a login system.
37+
- generateRSAKeyPair() - Generates a RSA key pair for use in encryption.
38+
- generateKeyPair(boolean saveToFiles, String filename) - Generates a RSA key pair for use in encryption and saves to file.
39+
- encrypt(PublicKey key, String plaintext) - Encrypts a string using a RSA public key. Returns byte array.
40+
- decrypt(PrivateKey key, byte[] ciphertext) - Decrypts a string using a RSA private key. Returns byte array.
41+
- encryptToString(PublicKey key, String plaintext) - Encrypts a string using a RSA public key. Returns string.
42+
- decryptFromString(PrivateKey key, String ciphertext) - Decrypts a string using a RSA private key. Returns string.
43+
- saveKeyPairToFile(KeyPair pair, String filename) - Saves RSA key pair to text file.
44+
- readPublicKeyFromBytes(byte[] bytes) - Reads RSA public key from bytes.
45+
- readPrivateKeyFromBytes(byte[] bytes) - Reads RSA public key from bytes.
46+
- readPublicKeyFromFile(String fileName) - Reads RSA public key from text file.
47+
- readPrivateKeyFromFile(String fileName) - Reads RSA private key from text file.

0 commit comments

Comments
 (0)