|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--huvc.security.Algorithm
| Constructor Summary | |
Algorithm()
|
|
| Method Summary | |
static byte[] |
encrypt(java.lang.String str)
Encrypts a string using the SHA-1 algorithm |
static boolean |
isEqual(byte[] digest1,
byte[] digest2)
Checks to see if two bytes are equal |
static void |
main(java.lang.String[] args)
test |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Algorithm()
| Method Detail |
public static byte[] encrypt(java.lang.String str)
str - - string to be encryted
public static boolean isEqual(byte[] digest1,
byte[] digest2)
public static void main(java.lang.String[] args)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||