code: public static String createId(String str)
              throws Exception {
          MessageDigest digest = MessageDigest.getInstance(
                  getFirstAvailableForId().getName(), PasswordMaker.getDefaultCryptoProvider());
  
          return "rdf:#$" + byteArrayToHexString(digest.digest(str.getBytes()));
      }
docs: Creates an ID from a string.
  <p>
  This is used to create the ID of the account which should be unique.
  There's no way for this object to know if it is truly unique so the database
  or GUI should do a check for uniqueness and re-hash if needed.
  
  @param str The string to hash.
  @return A hashed (SHA1) version of the string.
  @throws Exception Upon hashing error.