This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName public.server.name | |
ProxyPreserveHost On | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The div that holds all the lines | |
*/ | |
.pac-container { | |
color: #d9d9d9; | |
} | |
/* | |
class for each line of the result | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public byte[] generateToken(String url,String apiKey) throws NoSuchAlgorithmException{ | |
MessageDigest md = MessageDigest.getInstance("MD5");// throws NoSuchAlgorithmException | |
StringBuffer buffer = new StringBuffer(url); | |
buffer.append(apiKey);//prepare the string to be hashed url+APIKey | |
byte[] token = md.digest(buffer.toString().getBytes()); | |
return token ; | |
} |