Class Util
java.lang.Object
org.jpos.security.Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadjustDESParity(byte[] bytes) DES Keys use the LSB as the odd parity bit.static booleanisDESParityAdjusted(byte[] bytes) DES Keys use the LSB as the odd parity bit.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
adjustDESParity
DES Keys use the LSB as the odd parity bit. This method can be used enforce correct parity.- Parameters:
bytes- the byte array to set the odd parity on.
-
isDESParityAdjusted
DES Keys use the LSB as the odd parity bit. This method checks whether the parity is adjusted or not- Parameters:
bytes- the byte[] to be checked- Returns:
- true if parity is adjusted else returns false
-