|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Provides consistent cryptographic services for various Naanou components
Field Summary | |
---|---|
int |
HASH_BIT_LENGTH
Bit length of hash |
int | MAX_FILE_READ_LENGTH |
java.math.BigInteger |
MOD_BY
Mod by for fingers |
System.Security.Cryptography.SHA1 | sha |
Constructor Summary | |
---|---|
Crypto() Initializes a new instance of the Crypto class. |
Method Summary | |
---|---|
Naanou.Common.Hash |
Hash(string data) Hashes string data |
Naanou.Common.Hash |
Hash(byte[] data) Hashes byte array |
Naanou.Common.Hash |
Hash(byte[] data, int offset, int length) Hashes part of a byte array |
Naanou.Common.Hash |
Hash(System.IO.FileInfo file) Hashes a file |
Naanou.Common.Hash | HashLargeFile(System.IO.FileInfo file) |
Methods inherited from class System.Object |
---|
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString |
Field Detail |
---|
public int HASH_BIT_LENGTH
Bit length of hash
private int MAX_FILE_READ_LENGTH
public java.math.BigInteger MOD_BY
Mod by for fingers
private System.Security.Cryptography.SHA1 sha
Constructor Detail |
---|
private Crypto()
Initializes a new instance of the Crypto class.
Method Detail |
---|
public Naanou.Common.Hash Hash(string data)
Hashes string data
Parameters:
data
- Data to hashpublic Naanou.Common.Hash Hash(byte[] data)
Hashes byte array
Parameters:
data
- Datapublic Naanou.Common.Hash Hash(byte[] data, int offset, int length)
Hashes part of a byte array
Parameters:
data
- Dataoffset
- Offsetlength
- Lengthpublic Naanou.Common.Hash Hash(System.IO.FileInfo file)
Hashes a file
Parameters:
file
- private Naanou.Common.Hash HashLargeFile(System.IO.FileInfo file)
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |