src/main/java/org/tinyradius/packet/RadiusPacket.java
protected byte[] createRequestAuthenticator(String sharedSecret) {
        byte[] secretBytes = RadiusUtil.getUtf8Bytes(sharedSecret);
        byte[] randomBytes = new byte[16];
        SECURE_RANDOM.nextBytes(randomBytes);

        MessageDigest md5 = getMd5Digest();
        md5.reset();
        md5.update(secretBytes);
        md5.update(randomBytes);
        return md5.digest();
    }
/**
     * Creates a request authenticator for this packet. This request authenticator
     * is constructed as described in RFC 2865.
     *
     * @param sharedSecret shared secret that secures the communication
     *                     with the other Radius server/client
     * @return request authenticator, 16 bytes
     */
Creates a request authenticator for this packet. This request authenticator
is constructed as described in RFC 2865.

@param sharedSecret shared secret that secures the communication
with the other Radius server/client
@return request authenticator, 16 bytes
Creates a request authenticator for this packet . This request authenticator is constructed as described in RFC 2865 . @param sharedSecret shared secret that secures the communication with the other Radius server / client @return request authenticator 16 bytes
protected byte[] createRequestAuthenticator(String sharedSecret) {
        byte[] secretBytes = RadiusUtil.getUtf8Bytes(sharedSecret);
        byte[] randomBytes = new byte[16];
        SECURE_RANDOM.nextBytes(randomBytes);
        MessageDigest md5 = getMd5Digest();
        md5.reset();
        md5.update(secretBytes);
        md5.update(randomBytes);
        return md5.digest();
    }
protected byte [ ] createRequestAuthenticator ( String sharedSecret ) { byte [ ] secretBytes = RadiusUtil . getUtf8Bytes ( sharedSecret ) ; byte [ ] randomBytes = new byte [ 16 ] ; SECURE_RANDOM . nextBytes ( randomBytes ) ; MessageDigest md5 = getMd5Digest ( ) ; md5 . reset ( ) ; md5 . update ( secretBytes ) ; md5 . update ( randomBytes ) ; return md5 . digest ( ) ; }
Creates a request authenticator for this packet.
Creates a request authenticator for this packet .