| http://www.w3.org/ns/prov#value | - Forexample, if password is a string whose bytes are to form a DES key, the following creates aDESKeySpec object that can be used to encrypt or decrypt:byte[] desKeyData = password.getBytes();DESKeySpec desKeySpec = new DESKeySpec(desKeyData);Once youve constructed a key specification from the raw bytes of the key, you use a keyfactory to generate the actual key.
|